Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-169/managed_spaces/eed2770b-f28b-4b94-9a2f-dff42c453131
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-169/managed_spaces/eed2770b-f28b-4b94-9a2f-dff42c453131" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtMTE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTl9.HP4MQNzzrRp4U7IJpn50JWug_jMsQrzaIVa5Pl5ECBo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-169",
"url": "/v2/users/uaa-id-169",
"created_at": "2015-08-06T00:36:39Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "3266bb78-c914-4dfa-b492-cb975aa3ae4c",
"default_space_url": "/v2/spaces/3266bb78-c914-4dfa-b492-cb975aa3ae4c",
"spaces_url": "/v2/users/uaa-id-169/spaces",
"organizations_url": "/v2/users/uaa-id-169/organizations",
"managed_organizations_url": "/v2/users/uaa-id-169/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-169/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-169/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-169/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-169/audited_spaces"
}
}
Headers