Associate Space with the User
PUT /v2/users/:guid/spaces/:space_guid
Request
Route
PUT /v2/users/uaa-id-59/spaces/1955be04-5cdc-41a3-b046-36afe92e0cfc
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-59/spaces/1955be04-5cdc-41a3-b046-36afe92e0cfc" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzODM3MjU1fQ.wEKYCbehkm0JeX48rzFvZYOzV6u-kzFm2ZidS1_MGos" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-59",
"url": "/v2/users/uaa-id-59",
"created_at": "2016-01-19T19:40:55Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "1955be04-5cdc-41a3-b046-36afe92e0cfc",
"default_space_url": "/v2/spaces/1955be04-5cdc-41a3-b046-36afe92e0cfc",
"spaces_url": "/v2/users/uaa-id-59/spaces",
"organizations_url": "/v2/users/uaa-id-59/organizations",
"managed_organizations_url": "/v2/users/uaa-id-59/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-59/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-59/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-59/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-59/audited_spaces"
}
}
Headers