Remove Space from the User
DELETE /v2/users/:guid/spaces/:space_guid
Request
Route
DELETE /v2/users/uaa-id-383/spaces/7e882233-bdd4-4a05-841f-dee3a574725c
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-383/spaces/7e882233-bdd4-4a05-841f-dee3a574725c" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NCIsImVtYWlsIjoiZW1haWwtMjkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDd9.Ehx00kSfCD64sDGmF6LzIzJIhN7MBWLeJMkBJ6d3LW8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-383",
"url": "/v2/users/uaa-id-383",
"created_at": "2015-05-07T23:37:27Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "72e6f210-336f-4893-9c9b-f64390303f31",
"default_space_url": "/v2/spaces/72e6f210-336f-4893-9c9b-f64390303f31",
"spaces_url": "/v2/users/uaa-id-383/spaces",
"organizations_url": "/v2/users/uaa-id-383/organizations",
"managed_organizations_url": "/v2/users/uaa-id-383/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-383/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-383/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-383/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-383/audited_spaces"
}
}
Headers