Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_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-296/managed_spaces/79c787a5-af47-4101-8d26-d15e30ab94bc
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-296/managed_spaces/79c787a5-af47-4101-8d26-d15e30ab94bc" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDF9.UaT61Hz7UgQveN7HZcKMI33NF_KEzMCl6EAO9vTHKe0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-296",
"url": "/v2/users/uaa-id-296",
"created_at": "2015-02-13T22:35:01Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "41b6ef97-55ad-4c5b-9f9b-cc0870dafb8d",
"default_space_url": "/v2/spaces/41b6ef97-55ad-4c5b-9f9b-cc0870dafb8d",
"spaces_url": "/v2/users/uaa-id-296/spaces",
"organizations_url": "/v2/users/uaa-id-296/organizations",
"managed_organizations_url": "/v2/users/uaa-id-296/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-296/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-296/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-296/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-296/audited_spaces"
}
}