Home
Version 3
Spaces API

Spaces API

Disassociate Manager with the Space by Username

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/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.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUxNDEzNjc3fQ.J0XSBwkGrMQW9uG2emw2D0ic9k-R98pZSKmO5JfafEY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUxNDEzNjc3fQ.J0XSBwkGrMQW9uG2emw2D0ic9k-R98pZSKmO5JfafEY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "2d046621-1ee2-4020-a576-1ffae5a9fa89",
    "url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89",
    "created_at": "2015-12-22T18:27:56Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-89",
    "organization_guid": "a4c8765f-76b6-4535-a2ee-ea221af54746",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/a4c8765f-76b6-4535-a2ee-ea221af54746",
    "developers_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/developers",
    "managers_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/managers",
    "auditors_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/auditors",
    "apps_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/apps",
    "routes_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/routes",
    "domains_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/domains",
    "service_instances_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/service_instances",
    "app_events_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/app_events",
    "events_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/events",
    "security_groups_url": "/v2/spaces/2d046621-1ee2-4020-a576-1ffae5a9fa89/security_groups"
  }
}

Headers

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