Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-184/managed_organizations/6e9def1c-1989-484c-90ed-729539ccdbe5
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-184/managed_organizations/6e9def1c-1989-484c-90ed-729539ccdbe5" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTN9.m9PTr6wmxHuVYqy2DLJq5yZhdoJsMyosI6S1quOzqHw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-184",
"url": "/v2/users/uaa-id-184",
"created_at": "2015-06-16T23:40:53Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "4e3c7b48-477a-4f6a-90b3-b2f464a48f4b",
"default_space_url": "/v2/spaces/4e3c7b48-477a-4f6a-90b3-b2f464a48f4b",
"spaces_url": "/v2/users/uaa-id-184/spaces",
"organizations_url": "/v2/users/uaa-id-184/organizations",
"managed_organizations_url": "/v2/users/uaa-id-184/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-184/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-184/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-184/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-184/audited_spaces"
}
}
Headers