Home
Version 3
Spaces API

Spaces API

Remove Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NCIsImVtYWlsIjoiZW1haWwtMTY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTh9.9k3DnOYXnymZklbyw73WDzHEiMIaO2kmMe5Rxk1aZF4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NCIsImVtYWlsIjoiZW1haWwtMTY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTh9.9k3DnOYXnymZklbyw73WDzHEiMIaO2kmMe5Rxk1aZF4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8e40ce25-ccae-4a98-ac53-ab7853b53170",
    "url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170",
    "created_at": "2016-05-12T00:45:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1624",
    "organization_guid": "cae25093-449b-47d8-b97c-267ecbae0bdd",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/cae25093-449b-47d8-b97c-267ecbae0bdd",
    "developers_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/developers",
    "managers_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/managers",
    "auditors_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/auditors",
    "apps_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/apps",
    "routes_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/routes",
    "domains_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/domains",
    "service_instances_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/service_instances",
    "app_events_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/app_events",
    "events_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/events",
    "security_groups_url": "/v2/spaces/8e40ce25-ccae-4a98-ac53-ab7853b53170/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3cfc94fb-8e3e-4f1d-bc3f-16b2a0f0b388
Content-Length: 1278
X-Content-Type-Options: nosniff