Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-441/managed_organizations/e55b46b1-e93a-4b97-a6c2-0cd653e865c2
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-441/managed_organizations/e55b46b1-e93a-4b97-a6c2-0cd653e865c2" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MyIsImVtYWlsIjoiZW1haWwtMzI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTl9.UJKQGCo9MnJPgDaLaEkPYfCZC6_qbRIHcwaSusbLq-I" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-441",
"url": "/v2/users/uaa-id-441",
"created_at": "2015-11-03T00:54:19Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "df9420c4-f048-45c3-8e3f-dc12d9128570",
"default_space_url": "/v2/spaces/df9420c4-f048-45c3-8e3f-dc12d9128570",
"spaces_url": "/v2/users/uaa-id-441/spaces",
"organizations_url": "/v2/users/uaa-id-441/organizations",
"managed_organizations_url": "/v2/users/uaa-id-441/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-441/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-441/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-441/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-441/audited_spaces"
}
}
Headers