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-126/managed_spaces/87e68e84-f090-42fc-8614-43805445a7bb
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-126/managed_spaces/87e68e84-f090-42fc-8614-43805445a7bb" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNyIsImVtYWlsIjoiZW1haWwtODFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDEzNzM2Nn0.VZR39Nk-WnNWgcrJR6plkpvSXQ0hYVjrE6HrKV2n7gs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-126",
"url": "/v2/users/uaa-id-126",
"created_at": "2015-02-10T01:42:46Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "b0017a18-fa08-46ab-8d32-f687028770b4",
"default_space_url": "/v2/spaces/b0017a18-fa08-46ab-8d32-f687028770b4",
"spaces_url": "/v2/users/uaa-id-126/spaces",
"organizations_url": "/v2/users/uaa-id-126/organizations",
"managed_organizations_url": "/v2/users/uaa-id-126/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-126/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-126/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-126/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-126/audited_spaces"
}
}