Home
Version 3
Spaces API

Spaces API

Remove Manager from the Space

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

Request

Route

DELETE /v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/managers/uaa-id-92

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk0IiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0MjYwNjM5fQ.OWZOEBZX7P7CS8-VtcrdaGyD9YFK7TdmO0rgKdQGHXo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/managers/uaa-id-92" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk0IiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0MjYwNjM5fQ.OWZOEBZX7P7CS8-VtcrdaGyD9YFK7TdmO0rgKdQGHXo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1155da4e-d410-48c1-a88c-7579248f3e77",
    "url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77",
    "created_at": "2015-09-30T23:30:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1151",
    "organization_guid": "ead014ee-0489-4ff0-a2e5-0ad37aa81230",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/ead014ee-0489-4ff0-a2e5-0ad37aa81230",
    "developers_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/developers",
    "managers_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/managers",
    "auditors_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/auditors",
    "apps_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/apps",
    "routes_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/routes",
    "domains_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/domains",
    "service_instances_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/service_instances",
    "app_events_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/app_events",
    "events_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/events",
    "security_groups_url": "/v2/spaces/1155da4e-d410-48c1-a88c-7579248f3e77/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 67abe7bb-8790-4d51-9df9-09a50c37fa81
Content-Length: 1278
X-Content-Type-Options: nosniff