Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MCIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDl9.HQ6VTKu-dM7AL1n1KuOPs_N3NFDtqjbAK95cLwfIG7c
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MCIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDl9.HQ6VTKu-dM7AL1n1KuOPs_N3NFDtqjbAK95cLwfIG7c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f",
    "url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f",
    "created_at": "2016-03-14T22:30:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2331",
    "organization_guid": "d6650be7-01f3-4d38-bb19-bec35b9787a2",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d6650be7-01f3-4d38-bb19-bec35b9787a2",
    "developers_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/developers",
    "managers_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/managers",
    "auditors_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/auditors",
    "apps_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/apps",
    "routes_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/routes",
    "domains_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/domains",
    "service_instances_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/service_instances",
    "app_events_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/app_events",
    "events_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/events",
    "security_groups_url": "/v2/spaces/aaf6bbcd-3b79-4219-b6a8-1214b3d84b7f/security_groups"
  }
}

Headers

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