Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
DELETE /v2/users/uaa-id-167/managed_spaces/09f7ab21-c91e-49e1-9ce7-761456115dba
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-167/managed_spaces/09f7ab21-c91e-49e1-9ce7-761456115dba" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTl9.Qn0xuuANcc4xeFhMECVcINnN6wZ9yqfh28DienGMboU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-167",
"url": "/v2/users/uaa-id-167",
"created_at": "2015-08-06T00:36:39Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "271b5956-4754-47b1-bcb9-d40ec7e89736",
"default_space_url": "/v2/spaces/271b5956-4754-47b1-bcb9-d40ec7e89736",
"spaces_url": "/v2/users/uaa-id-167/spaces",
"organizations_url": "/v2/users/uaa-id-167/organizations",
"managed_organizations_url": "/v2/users/uaa-id-167/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-167/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-167/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-167/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-167/audited_spaces"
}
}
Headers