Remove Space from the User
DELETE /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
DELETE /v2/users/uaa-id-263/spaces/caf61fb5-6f56-42eb-b2c6-4156107d6793
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-263/spaces/caf61fb5-6f56-42eb-b2c6-4156107d6793" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NCIsImVtYWlsIjoiZW1haWwtMTg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDB9.XmeC4RG53-fSoBddkMGB8Nitat-evzvwMoQkRaS2CPo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-263",
"url": "/v2/users/uaa-id-263",
"created_at": "2015-02-13T22:35:00Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "8cafc4f7-ea1f-4b08-a10c-d4ef51315b89",
"default_space_url": "/v2/spaces/8cafc4f7-ea1f-4b08-a10c-d4ef51315b89",
"spaces_url": "/v2/users/uaa-id-263/spaces",
"organizations_url": "/v2/users/uaa-id-263/organizations",
"managed_organizations_url": "/v2/users/uaa-id-263/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-263/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-263/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-263/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-263/audited_spaces"
}
}