Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

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

Request

Route

DELETE /v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/auditors/uaa-id-16

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.K_Lnfrb6i9d6q-tnaO4-BSh68rUG57hLrRqba1hpKk4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/auditors/uaa-id-16" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.K_Lnfrb6i9d6q-tnaO4-BSh68rUG57hLrRqba1hpKk4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "75b4a3c9-dfd6-4a08-a4db-be02ac62dc95",
    "url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95",
    "created_at": "2015-10-13T17:31:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-87",
    "organization_guid": "9c94ba97-21dd-415a-84cc-1079de17e79e",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/9c94ba97-21dd-415a-84cc-1079de17e79e",
    "developers_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/developers",
    "managers_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/managers",
    "auditors_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/auditors",
    "apps_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/apps",
    "routes_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/routes",
    "domains_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/domains",
    "service_instances_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/service_instances",
    "app_events_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/app_events",
    "events_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/events",
    "security_groups_url": "/v2/spaces/75b4a3c9-dfd6-4a08-a4db-be02ac62dc95/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 917d1704-d9c0-4b1b-a85b-dc0f40c045b4
Content-Length: 1276
X-Content-Type-Options: nosniff