Home
Version 3
Spaces API

Spaces API

Disassociate Manager with the Space by Username

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/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.eyJ1c2VyX2lkIjoidWFhLWlkLTY1IiwiZW1haWwiOiJlbWFpbC0zNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.VaHW7ATmZ5aZBQUO9NJuqegPRNDirK_736gYMfk5obU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY1IiwiZW1haWwiOiJlbWFpbC0zNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.VaHW7ATmZ5aZBQUO9NJuqegPRNDirK_736gYMfk5obU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "17347fc1-13b8-41cb-8602-a808f890ba36",
    "url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36",
    "created_at": "2015-10-13T17:31:37Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-146",
    "organization_guid": "a2c107e5-b019-475f-8e90-d4bc58c6555c",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/a2c107e5-b019-475f-8e90-d4bc58c6555c",
    "developers_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/developers",
    "managers_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/managers",
    "auditors_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/auditors",
    "apps_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/apps",
    "routes_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/routes",
    "domains_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/domains",
    "service_instances_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/service_instances",
    "app_events_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/app_events",
    "events_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/events",
    "security_groups_url": "/v2/spaces/17347fc1-13b8-41cb-8602-a808f890ba36/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: dfb278c8-e9e8-4c55-a62d-705b738855ee
Content-Length: 1277
X-Content-Type-Options: nosniff