Home
Version 3
Users API

Users API

Remove Space from the User

DELETE /v2/users/:guid/spaces/: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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI4fQ.61NirsCf5IEasu3IWHssIilIGwUcdxqVHjCsDtsIUp0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-19/spaces/eee4d293-8373-409b-9100-465ff91584a5

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-19/spaces/eee4d293-8373-409b-9100-465ff91584a5" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI4fQ.61NirsCf5IEasu3IWHssIilIGwUcdxqVHjCsDtsIUp0" \
	-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: 8bcf19e1-ba83-4bce-91a1-4e8df44bde33
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-19",
    "url": "/v2/users/uaa-id-19",
    "created_at": "2015-01-20T01:52:08+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "5edcd52e-ba2a-4f28-b48b-c95a7128074a",
    "default_space_url": "/v2/spaces/5edcd52e-ba2a-4f28-b48b-c95a7128074a",
    "spaces_url": "/v2/users/uaa-id-19/spaces",
    "organizations_url": "/v2/users/uaa-id-19/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-19/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-19/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-19/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-19/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-19/audited_spaces"
  }
}