Associate User with the Organization
PUT /v2/organizations/:guid/users/:user_guid
Request
Route
PUT /v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/users/uaa-id-27
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/users/uaa-id-27" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4IiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU2fQ.HHLu8jfQ9AUD-_JEMGAoK8vEJKc8-yTHT9xCJ5Cw1vw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "daf69bca-6c24-4496-987b-5082cbbcca39",
"url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39",
"created_at": "2015-03-18T22:52:36Z",
"updated_at": null
},
"entity": {
"name": "name-72",
"billing_enabled": false,
"quota_definition_guid": "d2e9bfc9-c4c9-4979-bf94-c47c3d3f5328",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/d2e9bfc9-c4c9-4979-bf94-c47c3d3f5328",
"spaces_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/spaces",
"domains_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/domains",
"private_domains_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/private_domains",
"users_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/users",
"managers_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/managers",
"billing_managers_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/billing_managers",
"auditors_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/auditors",
"app_events_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/app_events",
"space_quota_definitions_url": "/v2/organizations/daf69bca-6c24-4496-987b-5082cbbcca39/space_quota_definitions"
}
}
Headers