Associate Managed Space with the User
PUT /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
PUT /v2/users/uaa-id-394/managed_spaces/2852eaa8-89eb-4e12-bd7b-d5b30479d261
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-394/managed_spaces/2852eaa8-89eb-4e12-bd7b-d5b30479d261" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjZ9.UfDzbgzfFXrW9RidOmNEcqhEWSeSEa-VzIKYh4Ek9JA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-394",
"url": "/v2/users/uaa-id-394",
"created_at": "2016-05-12T00:45:26Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "9c6c48d5-7c42-476d-98f1-1cb6dd3f5acc",
"default_space_url": "/v2/spaces/9c6c48d5-7c42-476d-98f1-1cb6dd3f5acc",
"spaces_url": "/v2/users/uaa-id-394/spaces",
"organizations_url": "/v2/users/uaa-id-394/organizations",
"managed_organizations_url": "/v2/users/uaa-id-394/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-394/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-394/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-394/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-394/audited_spaces"
}
}
Headers