Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-407/managed_organizations/e9319b9d-d96c-4db0-a826-96eff1c7f49e
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-407/managed_organizations/e9319b9d-d96c-4db0-a826-96eff1c7f49e" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOSIsImVtYWlsIjoiZW1haWwtMjg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDl9.rbnpAZz1_BhCIKcK4x4TuR94ytCJRZYLnGw_qNW6hy4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-407",
"url": "/v2/users/uaa-id-407",
"created_at": "2015-09-11T18:39:09Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "6299c74b-67a0-4af5-98a9-1581b583c658",
"default_space_url": "/v2/spaces/6299c74b-67a0-4af5-98a9-1581b583c658",
"spaces_url": "/v2/users/uaa-id-407/spaces",
"organizations_url": "/v2/users/uaa-id-407/organizations",
"managed_organizations_url": "/v2/users/uaa-id-407/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-407/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-407/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-407/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-407/audited_spaces"
}
}
Headers