Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

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

Request

Route

DELETE /v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/auditors/uaa-id-218

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njh9.7qga5p0C8rEzjNPYsObMQs_8lQIv1K1p99jHBcGSVsw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/auditors/uaa-id-218" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njh9.7qga5p0C8rEzjNPYsObMQs_8lQIv1K1p99jHBcGSVsw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd",
    "url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd",
    "created_at": "2015-03-03T00:51:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1288",
    "organization_guid": "1f6c6088-1c94-48c3-b0eb-bc2af8f80d9a",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/1f6c6088-1c94-48c3-b0eb-bc2af8f80d9a",
    "developers_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/developers",
    "managers_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/managers",
    "auditors_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/auditors",
    "apps_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/apps",
    "routes_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/routes",
    "domains_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/domains",
    "service_instances_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/service_instances",
    "app_events_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/app_events",
    "events_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/events",
    "security_groups_url": "/v2/spaces/ea7695af-e2d3-4ebe-a37e-3f37e1fce3fd/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 307c28ac-f052-4a5f-bb3f-1f8815c040da
Content-Length: 1255
X-Content-Type-Options: nosniff