Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-166/managed_organizations/4f650207-fbe4-4aa0-8225-c1047a980ad1
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-166/managed_organizations/4f650207-fbe4-4aa0-8225-c1047a980ad1" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDV9.eseahOjLyNiz-3VmtWll0SZScDCNe5kk6yDx5I2LFPw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-166",
"url": "/v2/users/uaa-id-166",
"created_at": "2016-04-06T00:17:25Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "0715a0c3-5f52-4393-a987-0ba3bacd32da",
"default_space_url": "/v2/spaces/0715a0c3-5f52-4393-a987-0ba3bacd32da",
"spaces_url": "/v2/users/uaa-id-166/spaces",
"organizations_url": "/v2/users/uaa-id-166/organizations",
"managed_organizations_url": "/v2/users/uaa-id-166/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-166/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-166/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-166/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-166/audited_spaces"
}
}
Headers