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-78/managed_spaces/b8f609ad-003b-4392-81f3-799fab1b09cd

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.eyJ1c2VyX2lkIjoidWFhLWlkLTc5IiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzQwfQ.kIxGSVuLymDPAE3JIUNynrXc7T5W7hkcXwnpk8uhZSw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-78/managed_spaces/b8f609ad-003b-4392-81f3-799fab1b09cd" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc5IiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzQwfQ.kIxGSVuLymDPAE3JIUNynrXc7T5W7hkcXwnpk8uhZSw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-78",
    "url": "/v2/users/uaa-id-78",
    "created_at": "2015-03-05T19:15:40Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "0e2130e2-1247-4507-8434-b072f39266ae",
    "default_space_url": "/v2/spaces/0e2130e2-1247-4507-8434-b072f39266ae",
    "spaces_url": "/v2/users/uaa-id-78/spaces",
    "organizations_url": "/v2/users/uaa-id-78/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-78/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-78/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-78/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-78/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-78/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4a542a31-3908-4d9d-b77b-b064a81dbb07
Content-Length: 836
X-Content-Type-Options: nosniff