Home
Version 3
Users API

Users API

Remove Managed Space from the User

DELETE /v2/users/:guid/managed_spaces/:managed_space_guid

Request

Route

DELETE /v2/users/uaa-id-385/managed_spaces/b3686260-c6fe-44ea-8c47-a232cc93747d

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NiIsImVtYWlsIjoiZW1haWwtMjg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2Mjd9.J4KIa3HjHxAQ61qUHSKadUl7U-laDhC0akZ_NTYU5LI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-385/managed_spaces/b3686260-c6fe-44ea-8c47-a232cc93747d" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NiIsImVtYWlsIjoiZW1haWwtMjg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2Mjd9.J4KIa3HjHxAQ61qUHSKadUl7U-laDhC0akZ_NTYU5LI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-385",
    "url": "/v2/users/uaa-id-385",
    "created_at": "2015-05-15T16:53:47Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "c83b1b01-262a-472c-8843-4856d0e25cfa",
    "default_space_url": "/v2/spaces/c83b1b01-262a-472c-8843-4856d0e25cfa",
    "spaces_url": "/v2/users/uaa-id-385/spaces",
    "organizations_url": "/v2/users/uaa-id-385/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-385/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-385/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-385/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-385/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-385/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4736e7e8-81da-48cf-87d5-00e5ba8bb2b2
Content-Length: 845
X-Content-Type-Options: nosniff