Home
Version 3
Spaces API

Spaces API

Remove Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTF9.Em6tEWxYm5PAnzfTwELP5c7jUkf36GTUTEz-FZwQf0o
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTF9.Em6tEWxYm5PAnzfTwELP5c7jUkf36GTUTEz-FZwQf0o" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "9405e90b-9089-4bd9-a753-3b60b396b935",
    "url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935",
    "created_at": "2016-04-06T00:17:31Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-932",
    "organization_guid": "f980fc23-1a33-4cfb-89ac-9584c0a6352d",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/f980fc23-1a33-4cfb-89ac-9584c0a6352d",
    "developers_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/developers",
    "managers_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/managers",
    "auditors_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/auditors",
    "apps_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/apps",
    "routes_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/routes",
    "domains_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/domains",
    "service_instances_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/service_instances",
    "app_events_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/app_events",
    "events_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/events",
    "security_groups_url": "/v2/spaces/9405e90b-9089-4bd9-a753-3b60b396b935/security_groups"
  }
}

Headers

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