Associate User with the Organization
PUT /v2/organizations/:guid/users/:user_guid
Request
Route
PUT /v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/users/uaa-id-86
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
user_guid
|
The guid of the user
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/users/uaa-id-86" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC02NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjQwfQ.ba-LzNcDQCPY4MSd7fuOkMApQfjop_iwEYeYT3lAqX0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "9572e4f2-1916-467e-960e-69d25c89ef81",
"url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81",
"created_at": "2016-04-06T00:17:20Z",
"updated_at": null
},
"entity": {
"name": "name-233",
"billing_enabled": false,
"quota_definition_guid": "24201496-d2f1-4b57-bc4c-4e03e55a9935",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/24201496-d2f1-4b57-bc4c-4e03e55a9935",
"spaces_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/spaces",
"domains_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/domains",
"private_domains_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/private_domains",
"users_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/users",
"managers_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/managers",
"billing_managers_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/billing_managers",
"auditors_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/auditors",
"app_events_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/app_events",
"space_quota_definitions_url": "/v2/organizations/9572e4f2-1916-467e-960e-69d25c89ef81/space_quota_definitions"
}
}
Headers