Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username (experimental)

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/auditors

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
auditor_guid The guid of the auditor
{
  "username": "auditor@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.fmgCwvSlM2aiI6zTA4EX5WA0jwHnM4RX8CVGErxQO-w
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.fmgCwvSlM2aiI6zTA4EX5WA0jwHnM4RX8CVGErxQO-w" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "81b82f27-2c6a-4dcc-bf37-dae3100ae686",
    "url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686",
    "created_at": "2015-09-11T18:38:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-82",
    "organization_guid": "4e535b53-5aaa-456c-8aed-ba0ed925dc9c",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/4e535b53-5aaa-456c-8aed-ba0ed925dc9c",
    "developers_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/developers",
    "managers_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/managers",
    "auditors_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/auditors",
    "apps_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/apps",
    "routes_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/routes",
    "domains_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/domains",
    "service_instances_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/service_instances",
    "app_events_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/app_events",
    "events_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/events",
    "security_groups_url": "/v2/spaces/81b82f27-2c6a-4dcc-bf37-dae3100ae686/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6a7ee937-9e40-4161-b209-4fd0264d0c8a
Content-Length: 1276
X-Content-Type-Options: nosniff