Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-383/managed_organizations/c058e749-b5ef-4af0-b374-0f64a734a505
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-383/managed_organizations/c058e749-b5ef-4af0-b374-0f64a734a505" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NSIsImVtYWlsIjoiZW1haWwtMjU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjZ9.dmlz2xMRcP6Rbzh-YYK74JZd2aOwYi4RcN4QWLUi_QQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-383",
"url": "/v2/users/uaa-id-383",
"created_at": "2016-05-12T00:45:25Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "1dc69945-9257-4c08-8523-ef3819ac2405",
"default_space_url": "/v2/spaces/1dc69945-9257-4c08-8523-ef3819ac2405",
"spaces_url": "/v2/users/uaa-id-383/spaces",
"organizations_url": "/v2/users/uaa-id-383/organizations",
"managed_organizations_url": "/v2/users/uaa-id-383/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-383/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-383/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-383/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-383/audited_spaces"
}
}
Headers