Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/auditors

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": "auditor@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYzIiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjA3fQ.KAprp6NG8p4-cDEpwi2zQVyvKR_gFc2PFuGaBmx5Kh0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYzIiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU0NDUxNjA3fQ.KAprp6NG8p4-cDEpwi2zQVyvKR_gFc2PFuGaBmx5Kh0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b5cfbb9a-f089-4046-9099-0450512bac69",
    "url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69",
    "created_at": "2016-01-26T22:20:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-128",
    "organization_guid": "8b099e1d-e27c-4048-8adb-d29b9fdc093e",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/8b099e1d-e27c-4048-8adb-d29b9fdc093e",
    "developers_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/developers",
    "managers_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/managers",
    "auditors_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/auditors",
    "apps_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/apps",
    "routes_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/routes",
    "domains_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/domains",
    "service_instances_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/service_instances",
    "app_events_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/app_events",
    "events_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/events",
    "security_groups_url": "/v2/spaces/b5cfbb9a-f089-4046-9099-0450512bac69/security_groups"
  }
}

Headers

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