Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-179/managed_spaces/2405ad63-c7ed-4a80-b4a5-83f9a7b416c3
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
managed_space_guid
|
The guid of the managed space
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-179/managed_spaces/2405ad63-c7ed-4a80-b4a5-83f9a7b416c3" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MCIsImVtYWlsIjoiZW1haWwtMTI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDV9.aJaUHM8eai_giTGtLPMcFpzr5Ibk05P0hIbQLdMWvyw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-179",
"url": "/v2/users/uaa-id-179",
"created_at": "2016-04-06T00:17:25Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "d7ab2067-e887-498d-8228-5c63a0daee27",
"default_space_url": "/v2/spaces/d7ab2067-e887-498d-8228-5c63a0daee27",
"spaces_url": "/v2/users/uaa-id-179/spaces",
"organizations_url": "/v2/users/uaa-id-179/organizations",
"managed_organizations_url": "/v2/users/uaa-id-179/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-179/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-179/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-179/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-179/audited_spaces"
}
}
Headers