Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-76/managed_spaces/ae094c7b-cbd5-4ce0-8bfe-db2144427965
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-76/managed_spaces/ae094c7b-cbd5-4ce0-8bfe-db2144427965" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc3IiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzQwfQ.252uSmxEFxMcwqyDHqX1bGMDQBOdAkP8qKKROP89HPE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-76",
"url": "/v2/users/uaa-id-76",
"created_at": "2015-03-05T19:15:40Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "9baa2b7f-319e-4aac-bcf5-f133fd12a91a",
"default_space_url": "/v2/spaces/9baa2b7f-319e-4aac-bcf5-f133fd12a91a",
"spaces_url": "/v2/users/uaa-id-76/spaces",
"organizations_url": "/v2/users/uaa-id-76/organizations",
"managed_organizations_url": "/v2/users/uaa-id-76/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-76/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-76/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-76/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-76/audited_spaces"
}
}
Headers