Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

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

Request

Route

DELETE /v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/auditors/uaa-id-397

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/auditors/uaa-id-397" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OSIsImVtYWlsIjoiZW1haWwtMzAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjZ9.37M1_KeAs5Fw0Ltcr68zz4zpIsBltGvXCTsJpmBUs20" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "5c7713b1-29a7-4c6d-bf59-7a18461938c1",
    "url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1",
    "created_at": "2015-06-16T23:41:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2287",
    "organization_guid": "743140de-1488-46ac-896e-d6c50de307e8",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/743140de-1488-46ac-896e-d6c50de307e8",
    "developers_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/developers",
    "managers_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/managers",
    "auditors_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/auditors",
    "apps_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/apps",
    "routes_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/routes",
    "domains_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/domains",
    "service_instances_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/service_instances",
    "app_events_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/app_events",
    "events_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/events",
    "security_groups_url": "/v2/spaces/5c7713b1-29a7-4c6d-bf59-7a18461938c1/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ae5d35fa-4289-467f-9d8b-e189b91067d0
Content-Length: 1278
X-Content-Type-Options: nosniff