Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-234/managed_spaces/8c6b185f-46b8-4a66-ab79-5d3a1f5f4463
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-234/managed_spaces/8c6b185f-46b8-4a66-ab79-5d3a1f5f4463" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njl9.8xglJE1P23T21_qtsx1A0HbLLtLcVzEXPNvoJVIOooQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-234",
"url": "/v2/users/uaa-id-234",
"created_at": "2015-03-18T22:52:49Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "71582a51-a0c0-41d8-88d4-3e49d9d31ef4",
"default_space_url": "/v2/spaces/71582a51-a0c0-41d8-88d4-3e49d9d31ef4",
"spaces_url": "/v2/users/uaa-id-234/spaces",
"organizations_url": "/v2/users/uaa-id-234/organizations",
"managed_organizations_url": "/v2/users/uaa-id-234/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-234/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-234/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-234/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-234/audited_spaces"
}
}
Headers