Associate Space with the User
PUT /v2/users/:guid/spaces/:space_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Request
Headers
Route
PUT /v2/users/uaa-id-45/spaces/a7670fdd-ed4a-41b2-b57e-fe9272222577
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-45/spaces/a7670fdd-ed4a-41b2-b57e-fe9272222577" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.xjz8q4AZR4Lr_8wn-mnQsKjNtRPHvBHb5vfYF4fbFyA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-45",
"url": "/v2/users/uaa-id-45",
"created_at": "2014-11-05T01:02:12+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "a7670fdd-ed4a-41b2-b57e-fe9272222577",
"default_space_url": "/v2/spaces/a7670fdd-ed4a-41b2-b57e-fe9272222577",
"spaces_url": "/v2/users/uaa-id-45/spaces",
"organizations_url": "/v2/users/uaa-id-45/organizations",
"managed_organizations_url": "/v2/users/uaa-id-45/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-45/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-45/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-45/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-45/audited_spaces"
}
}