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-143/managed_spaces/a41e7df5-ad37-49d1-8f85-aa33b098683a
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-143/managed_spaces/a41e7df5-ad37-49d1-8f85-aa33b098683a" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NCIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDN9.CzysXGsebkGAxWU4rxM6Fz11e4N_aFDB59aTYI6agj4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-143",
"url": "/v2/users/uaa-id-143",
"created_at": "2014-11-13T23:38:23+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "e7be72ea-17cb-4cfd-9fa8-ed88e346efcd",
"default_space_url": "/v2/spaces/e7be72ea-17cb-4cfd-9fa8-ed88e346efcd",
"spaces_url": "/v2/users/uaa-id-143/spaces",
"organizations_url": "/v2/users/uaa-id-143/organizations",
"managed_organizations_url": "/v2/users/uaa-id-143/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-143/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-143/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-143/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-143/audited_spaces"
}
}