Home
Version 3
Spaces API

Spaces API

Remove Manager from the Space

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

Request

Route

DELETE /v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/managers/uaa-id-67

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.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk5fQ.Eyd_-igNJX-wBaY_m8zGkynOohpLe4GdxB9ocTELDoQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/managers/uaa-id-67" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY5IiwiZW1haWwiOiJlbWFpbC02NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2NjMzODk5fQ.Eyd_-igNJX-wBaY_m8zGkynOohpLe4GdxB9ocTELDoQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0cb5de5c-86ed-446c-89c8-8ea4a2b14a91",
    "url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91",
    "created_at": "2015-03-10T23:11:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-257",
    "organization_guid": "251cc136-bd1e-4325-b676-b5dc10868a7d",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/251cc136-bd1e-4325-b676-b5dc10868a7d",
    "developers_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/developers",
    "managers_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/managers",
    "auditors_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/auditors",
    "apps_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/apps",
    "routes_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/routes",
    "domains_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/domains",
    "service_instances_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/service_instances",
    "app_events_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/app_events",
    "events_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/events",
    "security_groups_url": "/v2/spaces/0cb5de5c-86ed-446c-89c8-8ea4a2b14a91/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 36b48e55-3e3a-43d7-aede-05049afac441
Content-Length: 1254
X-Content-Type-Options: nosniff