Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Request
Headers
Route
DELETE /v2/users/uaa-id-45/managed_spaces/c5d00f9d-d493-41d2-9573-7acedac8cf9e
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-45/managed_spaces/c5d00f9d-d493-41d2-9573-7acedac8cf9e" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIwfQ.rz5txlWB3i909l1qqYIbHNcmg73oJ1KDGewuMiFpYbE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-45",
"url": "/v2/users/uaa-id-45",
"created_at": "2015-02-12T01:42:00Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "5a6885b3-4e3e-4155-a001-91f5a5277961",
"default_space_url": "/v2/spaces/5a6885b3-4e3e-4155-a001-91f5a5277961",
"spaces_url": "/v2/users/uaa-id-45/spaces",
"organizations_url": "/v2/users/uaa-id-45/organizations",
"managed_organizations_url": "/v2/users/uaa-id-45/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-45/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-45/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-45/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-45/audited_spaces"
}
}