Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
DELETE /v2/users/uaa-id-368/managed_spaces/11d1dc5f-9446-4290-b922-edfe760cceae
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-368/managed_spaces/11d1dc5f-9446-4290-b922-edfe760cceae" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OSIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDd9.trm5dAiZKizUSfC-9pI3aQrAl7orEQEXzYXWfAMtW7s" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-368",
"url": "/v2/users/uaa-id-368",
"created_at": "2015-05-07T23:37:27Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "45bef0df-c0da-4795-ab8c-716a66ed1b94",
"default_space_url": "/v2/spaces/45bef0df-c0da-4795-ab8c-716a66ed1b94",
"spaces_url": "/v2/users/uaa-id-368/spaces",
"organizations_url": "/v2/users/uaa-id-368/organizations",
"managed_organizations_url": "/v2/users/uaa-id-368/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-368/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-368/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-368/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-368/audited_spaces"
}
}
Headers