Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-40/managed_organizations/5c8495cb-1a16-43e0-a0c4-2141c8aa89f1
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-40/managed_organizations/5c8495cb-1a16-43e0-a0c4-2141c8aa89f1" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTMzfQ.AnzX3Jk62Uq4UYbqC6RPgfZFZ2HmnBkLraXzRuJ9nr0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-40",
"url": "/v2/users/uaa-id-40",
"created_at": "2015-04-15T00:55:33Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "659c9030-225c-4174-b8b1-26a205936be9",
"default_space_url": "/v2/spaces/659c9030-225c-4174-b8b1-26a205936be9",
"spaces_url": "/v2/users/uaa-id-40/spaces",
"organizations_url": "/v2/users/uaa-id-40/organizations",
"managed_organizations_url": "/v2/users/uaa-id-40/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-40/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-40/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-40/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-40/audited_spaces"
}
}
Headers