Associate User with the Organization
PUT /v2/organizations/:guid/users/:user_guid
Request
Route
PUT /v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/users/uaa-id-29
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/0f9eec56-878b-420d-95bd-9443fb5bff42/users/uaa-id-29" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwIiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ4MDM4OTQyfQ.G9WdFUFj-yorigkTYR3GnvSXkn2tjNNMfro6xHDC5w8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "0f9eec56-878b-420d-95bd-9443fb5bff42",
"url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42",
"created_at": "2015-11-13T17:02:22Z",
"updated_at": null
},
"entity": {
"name": "name-23",
"billing_enabled": false,
"quota_definition_guid": "41b7e3a8-9f23-4752-84e7-81a1665d2258",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/41b7e3a8-9f23-4752-84e7-81a1665d2258",
"spaces_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/spaces",
"domains_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/domains",
"private_domains_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/private_domains",
"users_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/users",
"managers_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/managers",
"billing_managers_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/billing_managers",
"auditors_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/auditors",
"app_events_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/app_events",
"space_quota_definitions_url": "/v2/organizations/0f9eec56-878b-420d-95bd-9443fb5bff42/space_quota_definitions"
}
}
Headers