Associate Managed Organization with the User
PUT /v2/users/:guid/managed_organizations/:managed_organization_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Request
Headers
Route
PUT /v2/users/uaa-id-202/managed_organizations/97ee1d79-b48e-4bc7-89cb-afd1996c63e4
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-202/managed_organizations/97ee1d79-b48e-4bc7-89cb-afd1996c63e4" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNCIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjN9.l1_9WKoTpvRzOZ7NAHpN6LGJEjfuVec3nrBFW0QZcIs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-202",
"url": "/v2/users/uaa-id-202",
"created_at": "2014-11-24T19:32:43+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "04ec9edb-6cf5-4c17-9d7f-caf2d07eb041",
"default_space_url": "/v2/spaces/04ec9edb-6cf5-4c17-9d7f-caf2d07eb041",
"spaces_url": "/v2/users/uaa-id-202/spaces",
"organizations_url": "/v2/users/uaa-id-202/organizations",
"managed_organizations_url": "/v2/users/uaa-id-202/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-202/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-202/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-202/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-202/audited_spaces"
}
}