Remove Space from the User
DELETE /v2/users/:guid/spaces/:space_guid
Request
Route
DELETE /v2/users/uaa-id-134/spaces/9ef18b25-71ba-44b4-839b-ee095d4d7aec
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-134/spaces/9ef18b25-71ba-44b4-839b-ee095d4d7aec" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNSIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzOTQyNjE5OH0.9xu0XrHQkebQ3XwUp7glP4ooX8U0Visf_v1L6XpZVP8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-134",
"url": "/v2/users/uaa-id-134",
"created_at": "2015-08-06T00:36:38Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "8da481b5-4d58-4280-9ce2-8b890a462a48",
"default_space_url": "/v2/spaces/8da481b5-4d58-4280-9ce2-8b890a462a48",
"spaces_url": "/v2/users/uaa-id-134/spaces",
"organizations_url": "/v2/users/uaa-id-134/organizations",
"managed_organizations_url": "/v2/users/uaa-id-134/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-134/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-134/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-134/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-134/audited_spaces"
}
}
Headers