Home
Version 3
Spaces API

Spaces API

Disassociate Manager with the Space by Username

DELETE v2/spaces/:guid/managers

Request

Route

DELETE v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.eBEZpUoGpJmLlFK4QagHC7Yv7Yx4UJCWF2moM7m_MRw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/managers" -d '{
  "username": "manager@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.eBEZpUoGpJmLlFK4QagHC7Yv7Yx4UJCWF2moM7m_MRw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa",
    "url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa",
    "created_at": "2015-10-07T00:35:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-99",
    "organization_guid": "7b4afa7c-887b-4673-8b34-555e0e7212f7",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/7b4afa7c-887b-4673-8b34-555e0e7212f7",
    "developers_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/developers",
    "managers_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/managers",
    "auditors_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/auditors",
    "apps_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/apps",
    "routes_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/routes",
    "domains_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/domains",
    "service_instances_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/service_instances",
    "app_events_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/app_events",
    "events_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/events",
    "security_groups_url": "/v2/spaces/6dd6dd18-8c25-4bd1-85a1-6c5fe25a34fa/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3a54af92-c0d4-43db-90f8-fd5bcf84bd09
Content-Length: 1276
X-Content-Type-Options: nosniff