Home
Version 3
Spaces API

Spaces API

Disassociate Manager with the Space by Username (experimental)

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/managers

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
manager_guid The guid of the manager
{
  "username": "manager@example.com"
}

Headers

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

cURL

curl "https://api.[your-domain.com]v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyIiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.mdXAF7Rcy_KtPm62YOV81F4gsfdU6HrLGCEeuy8owtc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "cf7a505e-3ee4-49fc-b3ca-a57ae09a072e",
    "url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e",
    "created_at": "2015-09-11T18:38:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-67",
    "organization_guid": "45d4dedf-e6d6-4969-9978-639954022a4b",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/45d4dedf-e6d6-4969-9978-639954022a4b",
    "developers_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/developers",
    "managers_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/managers",
    "auditors_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/auditors",
    "apps_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/apps",
    "routes_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/routes",
    "domains_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/domains",
    "service_instances_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/service_instances",
    "app_events_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/app_events",
    "events_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/events",
    "security_groups_url": "/v2/spaces/cf7a505e-3ee4-49fc-b3ca-a57ae09a072e/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0844e369-2bb8-4b32-81ac-833bd96e480e
Content-Length: 1276
X-Content-Type-Options: nosniff