Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/auditors

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "auditor@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC0zMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA4fQ.gqrv_Ef-u9ugAePXb899soarCv5RsOTx8VaeNSQjVsc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC0zMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA4fQ.gqrv_Ef-u9ugAePXb899soarCv5RsOTx8VaeNSQjVsc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7786f6d8-6623-484b-b9df-c077ec3c8344",
    "url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344",
    "created_at": "2015-11-30T23:38:28Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-104",
    "organization_guid": "7a0074a0-88cf-4212-9888-1a3b9e53d5da",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/7a0074a0-88cf-4212-9888-1a3b9e53d5da",
    "developers_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/developers",
    "managers_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/managers",
    "auditors_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/auditors",
    "apps_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/apps",
    "routes_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/routes",
    "domains_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/domains",
    "service_instances_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/service_instances",
    "app_events_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/app_events",
    "events_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/events",
    "security_groups_url": "/v2/spaces/7786f6d8-6623-484b-b9df-c077ec3c8344/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1277
X-Content-Type-Options: nosniff