Home
Version 3
Spaces API

Spaces API

Remove Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MCIsImVtYWlsIjoiZW1haWwtMjYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.R9XNvP6TwNhZriOGtrt9Sk-_uQK7IDTStozwhihUF_A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MCIsImVtYWlsIjoiZW1haWwtMjYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.R9XNvP6TwNhZriOGtrt9Sk-_uQK7IDTStozwhihUF_A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e2d05c43-f95f-4ec7-82ec-0904d82abe5e",
    "url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e",
    "created_at": "2016-06-08T16:41:41Z",
    "updated_at": "2016-06-08T16:41:26Z"
  },
  "entity": {
    "name": "name-2083",
    "organization_guid": "d356e46f-3fd5-47d4-ab4e-1f1c3f597bcb",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d356e46f-3fd5-47d4-ab4e-1f1c3f597bcb",
    "developers_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/developers",
    "managers_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/managers",
    "auditors_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/auditors",
    "apps_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/apps",
    "routes_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/routes",
    "domains_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/domains",
    "service_instances_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/service_instances",
    "app_events_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/app_events",
    "events_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/events",
    "security_groups_url": "/v2/spaces/e2d05c43-f95f-4ec7-82ec-0904d82abe5e/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2069051d-8a31-4d8a-aa88-f9b034459968
Content-Length: 1278
X-Content-Type-Options: nosniff