Remove Managed Space from the User
DELETE /v2/users/:guid/managed_spaces/:managed_space_guid
Request
Route
DELETE /v2/users/uaa-id-264/managed_spaces/09d4dc75-02d7-49c9-8deb-eed96a222e7e
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-264/managed_spaces/09d4dc75-02d7-49c9-8deb-eed96a222e7e" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NSIsImVtYWlsIjoiZW1haWwtMTg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzB9.X3VgRj-PabLPeoNqIIjTQeQX9PHmExk1yaqR451bgf8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-264",
"url": "/v2/users/uaa-id-264",
"created_at": "2015-03-03T00:51:10Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "baf92fed-41db-40b9-afdd-a202e15e2584",
"default_space_url": "/v2/spaces/baf92fed-41db-40b9-afdd-a202e15e2584",
"spaces_url": "/v2/users/uaa-id-264/spaces",
"organizations_url": "/v2/users/uaa-id-264/organizations",
"managed_organizations_url": "/v2/users/uaa-id-264/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-264/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-264/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-264/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-264/audited_spaces"
}
}
Headers