Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
DELETE /v2/users/uaa-id-207/managed_spaces/f3785f72-eb41-4474-9fe4-0c6bfa88e530
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-207/managed_spaces/f3785f72-eb41-4474-9fe4-0c6bfa88e530" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOCIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTN9.CJZYGU_Sjxemit5eenL6W9m86aq0RTyxZ1LErtpdaaY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-207",
"url": "/v2/users/uaa-id-207",
"created_at": "2015-06-16T23:40:53Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "7e058884-eb6f-451f-8b3f-00f2c9d5864c",
"default_space_url": "/v2/spaces/7e058884-eb6f-451f-8b3f-00f2c9d5864c",
"spaces_url": "/v2/users/uaa-id-207/spaces",
"organizations_url": "/v2/users/uaa-id-207/organizations",
"managed_organizations_url": "/v2/users/uaa-id-207/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-207/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-207/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-207/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-207/audited_spaces"
}
}
Headers