Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-116/managed_organizations/8dbe6d89-6240-4010-ab72-c3cbe7110b03
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-116/managed_organizations/8dbe6d89-6240-4010-ab72-c3cbe7110b03" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExOCIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzB9.Wp2xzK3k30MnDJaT7eYZEv285c9OXcOOfZ2BeqCpzP8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-116",
"url": "/v2/users/uaa-id-116",
"created_at": "2016-02-19T02:03:50Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "cb0eda18-8a8d-4dd5-befb-f6235b0455c8",
"default_space_url": "/v2/spaces/cb0eda18-8a8d-4dd5-befb-f6235b0455c8",
"spaces_url": "/v2/users/uaa-id-116/spaces",
"organizations_url": "/v2/users/uaa-id-116/organizations",
"managed_organizations_url": "/v2/users/uaa-id-116/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-116/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-116/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-116/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-116/audited_spaces"
}
}
Headers