Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

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

Request

Route

DELETE /v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/auditors/uaa-id-54

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU2IiwiZW1haWwiOiJlbWFpbC0yN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.kDEQN3n5u5zJiqVztLdIW8rQ_WRLBQjlso5rIwK3ogQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/auditors/uaa-id-54" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU2IiwiZW1haWwiOiJlbWFpbC0yN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.kDEQN3n5u5zJiqVztLdIW8rQ_WRLBQjlso5rIwK3ogQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7b02a8da-217b-4242-9c4a-7ecbc86d98cc",
    "url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc",
    "created_at": "2015-09-11T18:38:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-91",
    "organization_guid": "c1894c73-5806-4c00-a715-68cc94ef548e",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/c1894c73-5806-4c00-a715-68cc94ef548e",
    "developers_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/developers",
    "managers_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/managers",
    "auditors_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/auditors",
    "apps_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/apps",
    "routes_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/routes",
    "domains_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/domains",
    "service_instances_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/service_instances",
    "app_events_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/app_events",
    "events_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/events",
    "security_groups_url": "/v2/spaces/7b02a8da-217b-4242-9c4a-7ecbc86d98cc/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fdd9634d-28cc-4cc9-9ff6-d2247ca24d6b
Content-Length: 1276
X-Content-Type-Options: nosniff