Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
DELETE /v2/users/uaa-id-346/managed_spaces/60e0aec6-00a4-40a7-a481-637496c61bd9
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-346/managed_spaces/60e0aec6-00a4-40a7-a481-637496c61bd9" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTJ9.1OeI7cKzMeHeRIA6bRYOC40PbPbrqQrK8pHOVHfXyOI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-346",
"url": "/v2/users/uaa-id-346",
"created_at": "2015-09-30T23:30:52Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "d593631c-d4c6-4a61-906f-04672d004d53",
"default_space_url": "/v2/spaces/d593631c-d4c6-4a61-906f-04672d004d53",
"spaces_url": "/v2/users/uaa-id-346/spaces",
"organizations_url": "/v2/users/uaa-id-346/organizations",
"managed_organizations_url": "/v2/users/uaa-id-346/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-346/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-346/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-346/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-346/audited_spaces"
}
}
Headers