Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

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

Request

Route

DELETE /v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/auditors/uaa-id-230

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDZ9.7G_OksGZt0B_VOakdJOaMW8TOL18P5ssbn2TxygNfZc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/auditors/uaa-id-230" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDZ9.7G_OksGZt0B_VOakdJOaMW8TOL18P5ssbn2TxygNfZc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "dd662c30-38e7-45f3-8d21-86ed572cd83f",
    "url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f",
    "created_at": "2015-08-31T21:50:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-846",
    "organization_guid": "3a6fb9e8-6979-41dd-b210-d5cc9b864c86",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/3a6fb9e8-6979-41dd-b210-d5cc9b864c86",
    "developers_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/developers",
    "managers_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/managers",
    "auditors_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/auditors",
    "apps_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/apps",
    "routes_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/routes",
    "domains_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/domains",
    "service_instances_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/service_instances",
    "app_events_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/app_events",
    "events_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/events",
    "security_groups_url": "/v2/spaces/dd662c30-38e7-45f3-8d21-86ed572cd83f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 29e6b184-e60c-4d77-8cac-ab7df5b62914
Content-Length: 1277
X-Content-Type-Options: nosniff