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-325/managed_spaces/7724cf13-00ae-4414-8714-e6acfa8b118d
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-325/managed_spaces/7724cf13-00ae-4414-8714-e6acfa8b118d" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNiIsImVtYWlsIjoiZW1haWwtMjM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Nzh9._N24kEsF1gsVEq2mEnYxMiCvufyeK9x2DBhp-YmZt3A" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-325",
"url": "/v2/users/uaa-id-325",
"created_at": "2014-12-24T01:39:38+00:00",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "ba52f08e-e2cc-4047-a908-bbee4ae93d51",
"default_space_url": "/v2/spaces/ba52f08e-e2cc-4047-a908-bbee4ae93d51",
"spaces_url": "/v2/users/uaa-id-325/spaces",
"organizations_url": "/v2/users/uaa-id-325/organizations",
"managed_organizations_url": "/v2/users/uaa-id-325/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-325/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-325/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-325/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-325/audited_spaces"
}
}