Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

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

Request

Route

DELETE /v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/auditors/uaa-id-18

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0xMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg3fQ.qpZIbMngcm8lHylvrh-CbiopmZ6lpUYe_m_3BJB6lqM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/auditors/uaa-id-18" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwIiwiZW1haWwiOiJlbWFpbC0xMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg3fQ.qpZIbMngcm8lHylvrh-CbiopmZ6lpUYe_m_3BJB6lqM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f493f9e0-074d-4631-b59a-52a47c29ec5f",
    "url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f",
    "created_at": "2015-07-27T22:43:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-65",
    "organization_guid": "fb8817aa-1684-40d1-92f1-561709dddfdc",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/fb8817aa-1684-40d1-92f1-561709dddfdc",
    "developers_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/developers",
    "managers_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/managers",
    "auditors_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/auditors",
    "apps_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/apps",
    "routes_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/routes",
    "domains_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/domains",
    "service_instances_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/service_instances",
    "app_events_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/app_events",
    "events_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/events",
    "security_groups_url": "/v2/spaces/f493f9e0-074d-4631-b59a-52a47c29ec5f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b0121429-ea47-4eb8-a044-de4f53cdf3bc
Content-Length: 1276
X-Content-Type-Options: nosniff