Associate User with the Organization by Username
PUT v2/organizations/:guid/users
Request
Route
PUT v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/users
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
username
|
The user's name
|
|
|
|
{
"username": "user@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/users" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NSIsImVtYWlsIjoiZW1haWwtMzE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzJ9.WosR2f1HeroXomGSu1sJ-xtXlNAhoxHbAKP_0cPEfbQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "360b6e03-ba9f-43ae-865d-d0f090564fd2",
"url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2",
"created_at": "2015-10-15T23:52:52Z",
"updated_at": null
},
"entity": {
"name": "name-2456",
"billing_enabled": false,
"quota_definition_guid": "61c015d2-5370-45d7-a310-8bc1c7cf3745",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/61c015d2-5370-45d7-a310-8bc1c7cf3745",
"spaces_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/spaces",
"domains_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/domains",
"private_domains_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/private_domains",
"users_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/users",
"managers_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/managers",
"billing_managers_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/billing_managers",
"auditors_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/auditors",
"app_events_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/app_events",
"space_quota_definitions_url": "/v2/organizations/360b6e03-ba9f-43ae-865d-d0f090564fd2/space_quota_definitions"
}
}
Headers