Home
Version 3
Users API

Users API

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

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU0IiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.KpsG9Xk8Uzo1bORgFDVoRg6Nunn9o_GeJN3mwkefV5A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-53/managed_spaces/827bac1d-3a66-4ab9-8f67-886563f3db2a

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-53/managed_spaces/827bac1d-3a66-4ab9-8f67-886563f3db2a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU0IiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.KpsG9Xk8Uzo1bORgFDVoRg6Nunn9o_GeJN3mwkefV5A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6b56fe53-ffc7-4dae-92be-699ec1263a61
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-53",
    "url": "/v2/users/uaa-id-53",
    "created_at": "2014-11-05T01:02:12+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "669297d0-39a0-44b7-875b-b8ec5dbe9242",
    "default_space_url": "/v2/spaces/669297d0-39a0-44b7-875b-b8ec5dbe9242",
    "spaces_url": "/v2/users/uaa-id-53/spaces",
    "organizations_url": "/v2/users/uaa-id-53/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-53/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-53/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-53/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-53/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-53/audited_spaces"
  }
}