Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-175/managed_spaces/d1877e51-44bb-4cba-ac0d-55af11b3092c
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-175/managed_spaces/d1877e51-44bb-4cba-ac0d-55af11b3092c" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NiIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTd9.dq_V3psZ_AKhpY4ulayUq6InhtOl_bHXRqR0FEHBXCM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-175",
"url": "/v2/users/uaa-id-175",
"created_at": "2015-07-27T22:43:17Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "26696d05-fe57-4dbc-9218-87e2a860d936",
"default_space_url": "/v2/spaces/26696d05-fe57-4dbc-9218-87e2a860d936",
"spaces_url": "/v2/users/uaa-id-175/spaces",
"organizations_url": "/v2/users/uaa-id-175/organizations",
"managed_organizations_url": "/v2/users/uaa-id-175/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-175/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-175/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-175/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-175/audited_spaces"
}
}
Headers