Home
Version 3
Spaces API

Spaces API

Remove Manager from the Space

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

Request

Route

DELETE /v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/managers/uaa-id-22

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0IiwiZW1haWwiOiJlbWFpbC0yMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.QYNYjf1JcfhMh7-YjG5cvh_kNbDpb9hEg-k3BvFzAuc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/managers/uaa-id-22" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0IiwiZW1haWwiOiJlbWFpbC0yMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.QYNYjf1JcfhMh7-YjG5cvh_kNbDpb9hEg-k3BvFzAuc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "011644f4-5eec-47af-bf44-627e2772f6b7",
    "url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7",
    "created_at": "2015-10-07T00:35:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-87",
    "organization_guid": "3c5643ba-8656-4249-adfd-6cf0d9de0291",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/3c5643ba-8656-4249-adfd-6cf0d9de0291",
    "developers_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/developers",
    "managers_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/managers",
    "auditors_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/auditors",
    "apps_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/apps",
    "routes_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/routes",
    "domains_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/domains",
    "service_instances_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/service_instances",
    "app_events_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/app_events",
    "events_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/events",
    "security_groups_url": "/v2/spaces/011644f4-5eec-47af-bf44-627e2772f6b7/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 16bdc8ca-13b9-4944-8c4c-1bba0208299e
Content-Length: 1276
X-Content-Type-Options: nosniff