Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
DELETE /v2/users/uaa-id-179/managed_spaces/07491ff1-44c5-4f58-992e-a57ccb0965c0
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
managed_space_guid
|
The guid of the managed space
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-179/managed_spaces/07491ff1-44c5-4f58-992e-a57ccb0965c0" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MCIsImVtYWlsIjoiZW1haWwtMTMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTd9.t5cheQq-ZH6_8kOCM-FOGoWCz-iOIvprUGAth2I29_Y" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-179",
"url": "/v2/users/uaa-id-179",
"created_at": "2015-07-27T22:43:17Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "38e598da-2788-4569-8034-2b80de63cc71",
"default_space_url": "/v2/spaces/38e598da-2788-4569-8034-2b80de63cc71",
"spaces_url": "/v2/users/uaa-id-179/spaces",
"organizations_url": "/v2/users/uaa-id-179/organizations",
"managed_organizations_url": "/v2/users/uaa-id-179/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-179/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-179/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-179/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-179/audited_spaces"
}
}
Headers