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-46/managed_spaces/dc35021c-c5c0-44b0-b22e-1fe516e4d45c
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-46/managed_spaces/dc35021c-c5c0-44b0-b22e-1fe516e4d45c" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0yMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI5fQ.e9DKHwuw4JxsprP8KvBcVnSYDyQMC27bXHhjDQfKw0s" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-46",
"url": "/v2/users/uaa-id-46",
"created_at": "2015-01-20T01:52:09+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "8a35d282-1965-4c4b-9ae8-8098ebce1eea",
"default_space_url": "/v2/spaces/8a35d282-1965-4c4b-9ae8-8098ebce1eea",
"spaces_url": "/v2/users/uaa-id-46/spaces",
"organizations_url": "/v2/users/uaa-id-46/organizations",
"managed_organizations_url": "/v2/users/uaa-id-46/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-46/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-46/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-46/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-46/audited_spaces"
}
}