Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-4/managed_organizations/05488a7d-8725-4742-8ec8-e7c53b1ddd35
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-4/managed_organizations/05488a7d-8725-4742-8ec8-e7c53b1ddd35" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTU1NzkyN30.geUvvZ3FtYN8kPiVH-kDVSCtvv6pj25N7CIuxtrHuu8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-4",
"url": "/v2/users/uaa-id-4",
"created_at": "2015-10-15T23:52:07Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "d59b6aca-5320-4263-8c70-de9e00bde434",
"default_space_url": "/v2/spaces/d59b6aca-5320-4263-8c70-de9e00bde434",
"spaces_url": "/v2/users/uaa-id-4/spaces",
"organizations_url": "/v2/users/uaa-id-4/organizations",
"managed_organizations_url": "/v2/users/uaa-id-4/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-4/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-4/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-4/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-4/audited_spaces"
}
}
Headers