Associate Space with the User
PUT /v2/users/:guid/spaces/:space_guid
Request
Route
PUT /v2/users/uaa-id-211/spaces/f1c67c64-ae7b-4545-8543-93b576985a3c
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-211/spaces/f1c67c64-ae7b-4545-8543-93b576985a3c" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMiIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MjJ9.6r4dDUjB2s-GReuPllCbKQGavDj7Ru753GeXlb9pvVo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-211",
"url": "/v2/users/uaa-id-211",
"created_at": "2016-01-26T22:20:22Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "f1c67c64-ae7b-4545-8543-93b576985a3c",
"default_space_url": "/v2/spaces/f1c67c64-ae7b-4545-8543-93b576985a3c",
"spaces_url": "/v2/users/uaa-id-211/spaces",
"organizations_url": "/v2/users/uaa-id-211/organizations",
"managed_organizations_url": "/v2/users/uaa-id-211/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-211/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-211/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-211/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-211/audited_spaces"
}
}
Headers