Home
Version 3
Spaces API

Spaces API

Remove Manager from the Space

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

Request

Route

DELETE /v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/managers/uaa-id-51

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/managers/uaa-id-51" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUzIiwiZW1haWwiOiJlbWFpbC0zMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.TWdxM_dbe7NtKspbbkzp1uuCmYOW5ZOoq1Juf4CM650" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f6f206b2-e1f0-4386-994b-565c46e4850e",
    "url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e",
    "created_at": "2015-10-13T17:31:37Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-134",
    "organization_guid": "978eca65-2c07-46a9-9d55-d4cbb32aa128",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/978eca65-2c07-46a9-9d55-d4cbb32aa128",
    "developers_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/developers",
    "managers_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/managers",
    "auditors_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/auditors",
    "apps_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/apps",
    "routes_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/routes",
    "domains_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/domains",
    "service_instances_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/service_instances",
    "app_events_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/app_events",
    "events_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/events",
    "security_groups_url": "/v2/spaces/f6f206b2-e1f0-4386-994b-565c46e4850e/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e187702d-85a0-4362-81fe-3988c9705e29
Content-Length: 1277
X-Content-Type-Options: nosniff