Home
Version 3
Spaces API

Spaces API

Disassociate Manager with the Space by Username

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNyIsImVtYWlsIjoiZW1haWwtMTQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzV9.BHfvX3TDLrYKwMChWaDGhGmxu2_yu-3MIgwkP7sgCzk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNyIsImVtYWlsIjoiZW1haWwtMTQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzV9.BHfvX3TDLrYKwMChWaDGhGmxu2_yu-3MIgwkP7sgCzk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "406f1e0a-a4e3-4534-afb2-f83e5981c408",
    "url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408",
    "created_at": "2016-03-17T21:41:15Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-846",
    "organization_guid": "8d73b410-167c-4f4f-b35f-689ceaca0506",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/8d73b410-167c-4f4f-b35f-689ceaca0506",
    "developers_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/developers",
    "managers_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/managers",
    "auditors_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/auditors",
    "apps_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/apps",
    "routes_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/routes",
    "domains_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/domains",
    "service_instances_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/service_instances",
    "app_events_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/app_events",
    "events_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/events",
    "security_groups_url": "/v2/spaces/406f1e0a-a4e3-4534-afb2-f83e5981c408/security_groups"
  }
}

Headers

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