Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

DELETE /v2/spaces/:guid/auditors/:auditor_guid

Request

Route

DELETE /v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/auditors/uaa-id-313

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
auditor_guid The guid of the auditor

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDl9.rq2pEYzZVSl5vm-nBK2ZQ2vwCvygF1UaB52oYkDewEQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/auditors/uaa-id-313" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDl9.rq2pEYzZVSl5vm-nBK2ZQ2vwCvygF1UaB52oYkDewEQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "88c4d874-1ff9-4916-997a-b8af59d05231",
    "url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231",
    "created_at": "2015-08-06T00:36:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1939",
    "organization_guid": "97862fd1-ee71-4628-979d-934924a0972d",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/97862fd1-ee71-4628-979d-934924a0972d",
    "developers_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/developers",
    "managers_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/managers",
    "auditors_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/auditors",
    "apps_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/apps",
    "routes_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/routes",
    "domains_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/domains",
    "service_instances_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/service_instances",
    "app_events_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/app_events",
    "events_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/events",
    "security_groups_url": "/v2/spaces/88c4d874-1ff9-4916-997a-b8af59d05231/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cc0d9f8d-5765-4c9e-88d3-731246b8011c
Content-Length: 1278
X-Content-Type-Options: nosniff