Home
Version 3
Spaces API

Spaces API

Remove Manager from the Space

DELETE /v2/spaces/:guid/managers/:manager_guid

Request

Route

DELETE /v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/managers/uaa-id-164

Parameters

Name Description Valid Values Example Values
guid The guid of the Space

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/managers/uaa-id-164" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NiIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTY2NDEzOX0.xKSnEvAwHMc5DKveE_sC3NSMJXo8cQJojWVOpY8QmIM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a4d7b747-0248-4e42-baf3-399aba436a10",
    "url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10",
    "created_at": "2015-04-15T00:55:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1215",
    "organization_guid": "d3021873-e175-421e-a6d7-ce6bd28d39b6",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/d3021873-e175-421e-a6d7-ce6bd28d39b6",
    "developers_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/developers",
    "managers_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/managers",
    "auditors_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/auditors",
    "apps_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/apps",
    "routes_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/routes",
    "domains_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/domains",
    "service_instances_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/service_instances",
    "app_events_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/app_events",
    "events_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/events",
    "security_groups_url": "/v2/spaces/a4d7b747-0248-4e42-baf3-399aba436a10/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5037cd6b-2c02-4036-ba51-971c01bcdaf6
Content-Length: 1255
X-Content-Type-Options: nosniff