Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_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-48/managed_spaces/f36e5bb5-0c0f-434b-bf0a-fb3e7cdd5a74
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-48/managed_spaces/f36e5bb5-0c0f-434b-bf0a-fb3e7cdd5a74" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ5IiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI5fQ.vgAdBH19Bt3kvCSaV4Ad5JqYpdjFP53AM2DXL2AdVEY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-48",
"url": "/v2/users/uaa-id-48",
"created_at": "2015-01-20T01:52:09+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "4056885e-f143-4e7d-bad5-e25d9e10f8c7",
"default_space_url": "/v2/spaces/4056885e-f143-4e7d-bad5-e25d9e10f8c7",
"spaces_url": "/v2/users/uaa-id-48/spaces",
"organizations_url": "/v2/users/uaa-id-48/organizations",
"managed_organizations_url": "/v2/users/uaa-id-48/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-48/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-48/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-48/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-48/audited_spaces"
}
}