Remove Space from the User
DELETE /v2/users/:guid/spaces/:space_guid
Request
Route
DELETE /v2/users/uaa-id-349/spaces/35fa29ca-3a15-4aa7-9541-34f7f02dab2d
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-349/spaces/35fa29ca-3a15-4aa7-9541-34f7f02dab2d" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MCIsImVtYWlsIjoiZW1haWwtMjY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4Njh9.bT7RpSEaVpW7ZPSwqIdRhejPUe_hZYTV7RRDynus4XE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-349",
"url": "/v2/users/uaa-id-349",
"created_at": "2015-03-20T18:27:48Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "7f5b1924-25c9-4b23-aa0f-4934aaad608e",
"default_space_url": "/v2/spaces/7f5b1924-25c9-4b23-aa0f-4934aaad608e",
"spaces_url": "/v2/users/uaa-id-349/spaces",
"organizations_url": "/v2/users/uaa-id-349/organizations",
"managed_organizations_url": "/v2/users/uaa-id-349/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-349/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-349/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-349/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-349/audited_spaces"
}
}
Headers