Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

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

Request

Route

DELETE /v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/auditors/uaa-id-196

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OCIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDd9.8bOC0j6DAOBwXtQ6nias00ikHhfp3CJfLMIIwsF_TAM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/auditors/uaa-id-196" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OCIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDd9.8bOC0j6DAOBwXtQ6nias00ikHhfp3CJfLMIIwsF_TAM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c16ec863-a3d5-4051-aa39-c3b2f25c202c",
    "url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c",
    "created_at": "2015-06-04T00:05:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1410",
    "organization_guid": "d934a0f8-2afc-4e1b-9e1e-1a86d16da14f",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d934a0f8-2afc-4e1b-9e1e-1a86d16da14f",
    "developers_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/developers",
    "managers_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/managers",
    "auditors_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/auditors",
    "apps_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/apps",
    "routes_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/routes",
    "domains_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/domains",
    "service_instances_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/service_instances",
    "app_events_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/app_events",
    "events_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/events",
    "security_groups_url": "/v2/spaces/c16ec863-a3d5-4051-aa39-c3b2f25c202c/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 70b1eb87-041b-4334-9aa6-1ca6c732e7f7
Content-Length: 1278
X-Content-Type-Options: nosniff