Home
Version 3
Spaces API

Spaces API

Remove Manager from the Space

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

Request

Route

DELETE /v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/managers/uaa-id-203

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNSIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDV9.b_VbhZFwXM-UGM6Iwm2u5ze-m5Hxw2CC7450YQK4pzM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/managers/uaa-id-203" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNSIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDV9.b_VbhZFwXM-UGM6Iwm2u5ze-m5Hxw2CC7450YQK4pzM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "310d875d-e841-4d3a-b8a6-efc593c69fca",
    "url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca",
    "created_at": "2015-08-31T21:50:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-797",
    "organization_guid": "2598049b-d038-4e9e-ace3-fd467cdae0be",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/2598049b-d038-4e9e-ace3-fd467cdae0be",
    "developers_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/developers",
    "managers_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/managers",
    "auditors_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/auditors",
    "apps_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/apps",
    "routes_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/routes",
    "domains_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/domains",
    "service_instances_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/service_instances",
    "app_events_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/app_events",
    "events_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/events",
    "security_groups_url": "/v2/spaces/310d875d-e841-4d3a-b8a6-efc593c69fca/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 02c28648-6852-47a8-b949-2d452e21b4a2
Content-Length: 1277
X-Content-Type-Options: nosniff