Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-148/managed_spaces/ccee6298-7d5e-4e36-9062-7ec6a69b414f
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-148/managed_spaces/ccee6298-7d5e-4e36-9062-7ec6a69b414f" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0OSIsImVtYWlsIjoiZW1haWwtMTI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzJ9.YxUVyeSzLi5Gn7UrK01LwJfVXZolHAJejJ1aqsgIK5k" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-148",
"url": "/v2/users/uaa-id-148",
"created_at": "2016-02-19T02:03:51Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "6b5e25af-0a5e-4923-ab69-ad66dbe947b4",
"default_space_url": "/v2/spaces/6b5e25af-0a5e-4923-ab69-ad66dbe947b4",
"spaces_url": "/v2/users/uaa-id-148/spaces",
"organizations_url": "/v2/users/uaa-id-148/organizations",
"managed_organizations_url": "/v2/users/uaa-id-148/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-148/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-148/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-148/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-148/audited_spaces"
}
}
Headers