Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-323/managed_organizations/24cf60b9-e2ae-4d18-9949-06c9974c7644
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-323/managed_organizations/24cf60b9-e2ae-4d18-9949-06c9974c7644" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNSIsImVtYWlsIjoiZW1haWwtMjExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTF9.y-XN5fPeOPhIX-WF8lbvc0K05wug9eoTmWbd43Vq_Wo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-323",
"url": "/v2/users/uaa-id-323",
"created_at": "2015-09-30T23:30:51Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "70ea88d5-7827-4189-8339-7a0c41055c08",
"default_space_url": "/v2/spaces/70ea88d5-7827-4189-8339-7a0c41055c08",
"spaces_url": "/v2/users/uaa-id-323/spaces",
"organizations_url": "/v2/users/uaa-id-323/organizations",
"managed_organizations_url": "/v2/users/uaa-id-323/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-323/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-323/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-323/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-323/audited_spaces"
}
}
Headers