Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-320/managed_organizations/7d32238b-b8d5-487c-b523-1379f2e4c5f4
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-320/managed_organizations/7d32238b-b8d5-487c-b523-1379f2e4c5f4" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTV9.tK5a2xgkVzu1fzbt5ZuH0U74zC8LrDelsZBxbS0DGk8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-320",
"url": "/v2/users/uaa-id-320",
"created_at": "2015-10-13T17:31:55Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "6a48cd41-c64e-4fca-9bd2-2ae8ab9cd714",
"default_space_url": "/v2/spaces/6a48cd41-c64e-4fca-9bd2-2ae8ab9cd714",
"spaces_url": "/v2/users/uaa-id-320/spaces",
"organizations_url": "/v2/users/uaa-id-320/organizations",
"managed_organizations_url": "/v2/users/uaa-id-320/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-320/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-320/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-320/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-320/audited_spaces"
}
}
Headers