Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-447/managed_spaces/a5b00e31-599d-4242-85b7-a20a97b3ccf1
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-447/managed_spaces/a5b00e31-599d-4242-85b7-a20a97b3ccf1" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0OCIsImVtYWlsIjoiZW1haWwtMzI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTl9.GszWmRRKYpxrkrGQM42W7Tb6vEZ5NbF7mszRnDuEaJ4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-447",
"url": "/v2/users/uaa-id-447",
"created_at": "2015-11-03T00:54:19Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "ed130213-58d2-4f7e-82c0-de44d101eeed",
"default_space_url": "/v2/spaces/ed130213-58d2-4f7e-82c0-de44d101eeed",
"spaces_url": "/v2/users/uaa-id-447/spaces",
"organizations_url": "/v2/users/uaa-id-447/organizations",
"managed_organizations_url": "/v2/users/uaa-id-447/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-447/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-447/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-447/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-447/audited_spaces"
}
}
Headers