Home
Version 3
Spaces API

Spaces API

Disassociate Manager with the Space by Username

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/managers

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "manager@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NCIsImVtYWlsIjoiZW1haWwtMjAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDR9.1Zgl0uaOK65S5moqmg9Si7SLICxH4RHpnI0JPOCHsRk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NCIsImVtYWlsIjoiZW1haWwtMjAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDR9.1Zgl0uaOK65S5moqmg9Si7SLICxH4RHpnI0JPOCHsRk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b09dff12-f66d-4be5-b827-ffadcbc8df0b",
    "url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b",
    "created_at": "2015-11-03T00:54:04Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1116",
    "organization_guid": "12e95bb9-9e03-45b6-902e-bbe8d460a10d",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/12e95bb9-9e03-45b6-902e-bbe8d460a10d",
    "developers_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/developers",
    "managers_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/managers",
    "auditors_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/auditors",
    "apps_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/apps",
    "routes_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/routes",
    "domains_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/domains",
    "service_instances_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/service_instances",
    "app_events_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/app_events",
    "events_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/events",
    "security_groups_url": "/v2/spaces/b09dff12-f66d-4be5-b827-ffadcbc8df0b/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c516982f-974f-4799-8a5e-7c77171177bf
Content-Length: 1278
X-Content-Type-Options: nosniff