Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
DELETE /v2/users/uaa-id-189/managed_spaces/dee64ad1-d62a-4706-a4d4-95d2a7f14009
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-189/managed_spaces/dee64ad1-d62a-4706-a4d4-95d2a7f14009" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MCIsImVtYWlsIjoiZW1haWwtMTMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDR9.KatnpcyTzo6wzY15K-19k2t_Bcnb-WcEA6SksjAhQKw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-189",
"url": "/v2/users/uaa-id-189",
"created_at": "2015-03-10T23:11:44Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "21015185-5ceb-4762-9b01-1e56a5437b3a",
"default_space_url": "/v2/spaces/21015185-5ceb-4762-9b01-1e56a5437b3a",
"spaces_url": "/v2/users/uaa-id-189/spaces",
"organizations_url": "/v2/users/uaa-id-189/organizations",
"managed_organizations_url": "/v2/users/uaa-id-189/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-189/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-189/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-189/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-189/audited_spaces"
}
}
Headers