Home
Version 3
Spaces API

Spaces API

Remove Manager from the Space

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

Request

Route

DELETE /v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/managers/uaa-id-184

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/managers/uaa-id-184" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDd9.c8xIvetbNPiHO8hItfO7cRyGpmEUaayG3CWY_NPEslU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "77e0bbb2-26da-4a22-8af2-34c200e61685",
    "url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685",
    "created_at": "2015-06-04T00:05:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1390",
    "organization_guid": "7643bdef-ab57-4c9e-918e-28a557992bf7",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/7643bdef-ab57-4c9e-918e-28a557992bf7",
    "developers_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/developers",
    "managers_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/managers",
    "auditors_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/auditors",
    "apps_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/apps",
    "routes_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/routes",
    "domains_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/domains",
    "service_instances_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/service_instances",
    "app_events_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/app_events",
    "events_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/events",
    "security_groups_url": "/v2/spaces/77e0bbb2-26da-4a22-8af2-34c200e61685/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ba454604-7c18-48db-965c-18fd88be27c2
Content-Length: 1278
X-Content-Type-Options: nosniff