Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-209/managed_spaces/25e0770a-1f41-4db3-b2c4-c972fabc376f
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-209/managed_spaces/25e0770a-1f41-4db3-b2c4-c972fabc376f" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDN9.H5mJsVxNYx9oTP5Z3SYiOhllSF9-n1daCqFbe65INvM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-209",
"url": "/v2/users/uaa-id-209",
"created_at": "2016-04-22T19:33:23Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "51719a21-3792-4b15-a745-93b3aac15ff1",
"default_space_url": "/v2/spaces/51719a21-3792-4b15-a745-93b3aac15ff1",
"spaces_url": "/v2/users/uaa-id-209/spaces",
"organizations_url": "/v2/users/uaa-id-209/organizations",
"managed_organizations_url": "/v2/users/uaa-id-209/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-209/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-209/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-209/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-209/audited_spaces"
}
}
Headers