Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
DELETE /v2/users/uaa-id-307/managed_spaces/e4de1b43-68da-4915-a836-1b205afce665
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-307/managed_spaces/e4de1b43-68da-4915-a836-1b205afce665" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwOCIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTh9.CYBISJ5G0UEKDAZfwt4VsrCoR5Y2Dc36vSf9fehLoF8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-307",
"url": "/v2/users/uaa-id-307",
"created_at": "2015-05-21T01:03:18Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "242bab4f-f33b-4dea-9947-be70fb8093a8",
"default_space_url": "/v2/spaces/242bab4f-f33b-4dea-9947-be70fb8093a8",
"spaces_url": "/v2/users/uaa-id-307/spaces",
"organizations_url": "/v2/users/uaa-id-307/organizations",
"managed_organizations_url": "/v2/users/uaa-id-307/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-307/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-307/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-307/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-307/audited_spaces"
}
}
Headers