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-7/managed_spaces/ea5ba73f-dbea-4a12-9479-42df6d3ab459

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-7/managed_spaces/ea5ba73f-dbea-4a12-9479-42df6d3ab459" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5M30.MG7tSJv53OykWeL9yNadFViPSMp1cImX86POddW0V94" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-7",
    "url": "/v2/users/uaa-id-7",
    "created_at": "2015-08-31T21:49:53Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "8ba58829-87e8-40c3-91b8-b53e3d7c32ab",
    "default_space_url": "/v2/spaces/8ba58829-87e8-40c3-91b8-b53e3d7c32ab",
    "spaces_url": "/v2/users/uaa-id-7/spaces",
    "organizations_url": "/v2/users/uaa-id-7/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-7/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-7/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-7/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-7/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-7/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fdc83879-ef53-4ee9-af53-c9ee0ca3d215
Content-Length: 827
X-Content-Type-Options: nosniff