Remove Space from the User
DELETE /v2/users/:guid/spaces/:space_guid
Request
Route
DELETE /v2/users/uaa-id-195/spaces/05d387b7-8db8-42c1-a48d-df5c5b30cf9c
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-195/spaces/05d387b7-8db8-42c1-a48d-df5c5b30cf9c" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NiIsImVtYWlsIjoiZW1haWwtMTUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTN9.J0ppGXviSChq5norZJo3QGL2vPkjWEuEW6ROPWT0xow" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-195",
"url": "/v2/users/uaa-id-195",
"created_at": "2015-06-16T23:40:53Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "f04fd4a9-619d-4fa4-b52c-fa9ba944ce1d",
"default_space_url": "/v2/spaces/f04fd4a9-619d-4fa4-b52c-fa9ba944ce1d",
"spaces_url": "/v2/users/uaa-id-195/spaces",
"organizations_url": "/v2/users/uaa-id-195/organizations",
"managed_organizations_url": "/v2/users/uaa-id-195/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-195/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-195/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-195/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-195/audited_spaces"
}
}
Headers