Associate Space with the User
PUT /v2/users/:guid/spaces/:space_guid
Request
Route
PUT /v2/users/uaa-id-203/spaces/25a215ca-8b9b-4e27-b00d-62b20622550d
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
space_guid
|
The guid of the space
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-203/spaces/25a215ca-8b9b-4e27-b00d-62b20622550d" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNCIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDN9.p3QTMUQqYahZHLETJoLwlD7jZuwbm1II-tbqB5v_ohI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-203",
"url": "/v2/users/uaa-id-203",
"created_at": "2016-04-22T19:33:23Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "25a215ca-8b9b-4e27-b00d-62b20622550d",
"default_space_url": "/v2/spaces/25a215ca-8b9b-4e27-b00d-62b20622550d",
"spaces_url": "/v2/users/uaa-id-203/spaces",
"organizations_url": "/v2/users/uaa-id-203/organizations",
"managed_organizations_url": "/v2/users/uaa-id-203/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-203/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-203/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-203/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-203/audited_spaces"
}
}
Headers