Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-202/managed_organizations/1d7b2303-eec0-4425-a56b-3e54a5127f75
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-202/managed_organizations/1d7b2303-eec0-4425-a56b-3e54a5127f75" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNCIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njh9.n2Vy4VVve0pgxO8VmsrwIC1whTMlewqwLc8QH18_-HE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-202",
"url": "/v2/users/uaa-id-202",
"created_at": "2015-03-18T22:52:48Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "5d4649fd-f759-4d58-9e50-d5a5160d3dee",
"default_space_url": "/v2/spaces/5d4649fd-f759-4d58-9e50-d5a5160d3dee",
"spaces_url": "/v2/users/uaa-id-202/spaces",
"organizations_url": "/v2/users/uaa-id-202/organizations",
"managed_organizations_url": "/v2/users/uaa-id-202/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-202/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-202/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-202/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-202/audited_spaces"
}
}
Headers