Home
Version 3
Spaces API

Spaces API

Disassociate Manager with the Space by Username

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/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.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.99rNsK_mdwP_-xoCAOX1bv0jR-HX_M3c0y4V42uiQ8c
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.99rNsK_mdwP_-xoCAOX1bv0jR-HX_M3c0y4V42uiQ8c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "598cd550-12bd-454c-809b-46b5802fcf49",
    "url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49",
    "created_at": "2016-01-13T17:29:31Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-97",
    "organization_guid": "c3c3d671-6302-4ce7-95bd-f1f0984fedf5",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/c3c3d671-6302-4ce7-95bd-f1f0984fedf5",
    "developers_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/developers",
    "managers_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/managers",
    "auditors_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/auditors",
    "apps_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/apps",
    "routes_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/routes",
    "domains_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/domains",
    "service_instances_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/service_instances",
    "app_events_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/app_events",
    "events_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/events",
    "security_groups_url": "/v2/spaces/598cd550-12bd-454c-809b-46b5802fcf49/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1276
X-Content-Type-Options: nosniff