Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDZ9.klV5p660u2uHpgqUoYhN20zmyB3RhBTOwUy8Mos-1Kg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/auditors/uaa-id-223

cURL

curl "https://api.[your-domain.com]/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/auditors/uaa-id-223" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDZ9.klV5p660u2uHpgqUoYhN20zmyB3RhBTOwUy8Mos-1Kg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2a33a8ef-6942-42a7-abbf-62097696788e
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "2275b7c9-1918-492e-bbfa-85a1a797e06c",
    "url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c",
    "created_at": "2014-11-13T23:38:26+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-795",
    "organization_guid": "00aa9375-6dd3-46e2-8837-2174e768e159",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/00aa9375-6dd3-46e2-8837-2174e768e159",
    "developers_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/developers",
    "managers_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/managers",
    "auditors_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/auditors",
    "apps_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/apps",
    "routes_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/routes",
    "domains_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/domains",
    "service_instances_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/service_instances",
    "app_events_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/app_events",
    "events_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/events",
    "security_groups_url": "/v2/spaces/2275b7c9-1918-492e-bbfa-85a1a797e06c/security_groups"
  }
}