Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-359/managed_organizations/9677b0ee-f91c-4a24-9ad1-4374370dcdcc
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-359/managed_organizations/9677b0ee-f91c-4a24-9ad1-4374370dcdcc" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MSIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5ODl9.Ir9PpEAavmqvwbgCYnTEFG1_Bb9fOrs0Rnxh05bCu58" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-359",
"url": "/v2/users/uaa-id-359",
"created_at": "2016-01-13T17:29:49Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "6315bf10-8b35-43b0-af1a-c06e7ce4e6d1",
"default_space_url": "/v2/spaces/6315bf10-8b35-43b0-af1a-c06e7ce4e6d1",
"spaces_url": "/v2/users/uaa-id-359/spaces",
"organizations_url": "/v2/users/uaa-id-359/organizations",
"managed_organizations_url": "/v2/users/uaa-id-359/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-359/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-359/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-359/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-359/audited_spaces"
}
}
Headers