Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-156/managed_organizations/e1bae309-8a93-4a1e-9712-6085ffe739e5
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
managed_organization_guid
|
The guid of the managed_organization
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-156/managed_organizations/e1bae309-8a93-4a1e-9712-6085ffe739e5" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1OCIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTh9.KhvM0Ap4AjS8pzCbdPykBIQvGab9oU0AzAnKqU4Uq3k" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-156",
"url": "/v2/users/uaa-id-156",
"created_at": "2015-08-06T00:36:38Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "611a897b-daea-4fc5-9411-d1f4aeec95b9",
"default_space_url": "/v2/spaces/611a897b-daea-4fc5-9411-d1f4aeec95b9",
"spaces_url": "/v2/users/uaa-id-156/spaces",
"organizations_url": "/v2/users/uaa-id-156/organizations",
"managed_organizations_url": "/v2/users/uaa-id-156/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-156/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-156/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-156/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-156/audited_spaces"
}
}
Headers