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-60/managed_organizations/f6d2a89a-f394-4d4e-99b3-c8c8eca63ece
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-60/managed_organizations/f6d2a89a-f394-4d4e-99b3-c8c8eca63ece" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYyIiwiZW1haWwiOiJlbWFpbC0zNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIxfQ.G0RlL5vCmJHnpYn7Zlug6nKW6l1z2P32mekDmvBGszg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-60",
"url": "/v2/users/uaa-id-60",
"created_at": "2015-02-12T01:42:01Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "104b3a14-5cef-4980-a67f-57a3d8c466d5",
"default_space_url": "/v2/spaces/104b3a14-5cef-4980-a67f-57a3d8c466d5",
"spaces_url": "/v2/users/uaa-id-60/spaces",
"organizations_url": "/v2/users/uaa-id-60/organizations",
"managed_organizations_url": "/v2/users/uaa-id-60/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-60/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-60/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-60/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-60/audited_spaces"
}
}