Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-183/managed_organizations/8fe081e7-7eb2-432a-b379-2cc80f69efcc
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-183/managed_organizations/8fe081e7-7eb2-432a-b379-2cc80f69efcc" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NSIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDR9.rZPcO5JRe16gWepOuSlQzh9WGnQwKtcWEXvveQNL-i4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-183",
"url": "/v2/users/uaa-id-183",
"created_at": "2015-03-10T23:11:44Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "2ed6ba19-d349-4179-a3e3-8589ed1f8bf6",
"default_space_url": "/v2/spaces/2ed6ba19-d349-4179-a3e3-8589ed1f8bf6",
"spaces_url": "/v2/users/uaa-id-183/spaces",
"organizations_url": "/v2/users/uaa-id-183/organizations",
"managed_organizations_url": "/v2/users/uaa-id-183/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-183/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-183/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-183/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-183/audited_spaces"
}
}
Headers