Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-54/managed_spaces/fd05ce91-fa29-4d0f-a45e-bc5cc115206a
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-54/managed_spaces/fd05ce91-fa29-4d0f-a45e-bc5cc115206a" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMzOTgxMDk3fQ.qNggwxCALlX_rc2U5Qa7-rRV6gqq51vKsJYaWt1obVs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-54",
"url": "/v2/users/uaa-id-54",
"created_at": "2015-06-04T00:04:57Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "7154c62e-119f-4eb7-b413-bc2a77f9e3f1",
"default_space_url": "/v2/spaces/7154c62e-119f-4eb7-b413-bc2a77f9e3f1",
"spaces_url": "/v2/users/uaa-id-54/spaces",
"organizations_url": "/v2/users/uaa-id-54/organizations",
"managed_organizations_url": "/v2/users/uaa-id-54/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-54/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-54/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-54/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-54/audited_spaces"
}
}
Headers