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-13/managed_spaces/159a1821-aecc-4ba8-86aa-e368c0ab3899

Parameters

Name Description Valid Values Example Values
guid The guid of the User
managed_space_guid The guid of the managed space

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-13/managed_spaces/159a1821-aecc-4ba8-86aa-e368c0ab3899" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC04QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3NzR9.Nteo2iqztIjVCWwXO9yJRK8A0HYK32w69k71hSA1oeQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-13",
    "url": "/v2/users/uaa-id-13",
    "created_at": "2015-07-06T23:22:53Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "68de372e-f4ac-4846-be24-4e5d5bf2c7bc",
    "default_space_url": "/v2/spaces/68de372e-f4ac-4846-be24-4e5d5bf2c7bc",
    "spaces_url": "/v2/users/uaa-id-13/spaces",
    "organizations_url": "/v2/users/uaa-id-13/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-13/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-13/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-13/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-13/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-13/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4f307eb0-6d63-4127-91db-5e92e508c4e5
Content-Length: 836
X-Content-Type-Options: nosniff