Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/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.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY3NX0.tA1tnJR0w3ypzrDKO1VuvXFEnUjk-8RBK-65QHSHnRI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY3NX0.tA1tnJR0w3ypzrDKO1VuvXFEnUjk-8RBK-65QHSHnRI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "672c9aad-aece-4621-9393-e3a23a42079e",
    "url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e",
    "created_at": "2015-12-22T18:27:55Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-23",
    "organization_guid": "558ddee2-1369-4488-bb20-14954f3a3b36",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/558ddee2-1369-4488-bb20-14954f3a3b36",
    "developers_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/developers",
    "managers_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/managers",
    "auditors_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/auditors",
    "apps_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/apps",
    "routes_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/routes",
    "domains_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/domains",
    "service_instances_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/service_instances",
    "app_events_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/app_events",
    "events_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/events",
    "security_groups_url": "/v2/spaces/672c9aad-aece-4621-9393-e3a23a42079e/security_groups"
  }
}

Headers

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