Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OSIsImVtYWlsIjoiZW1haWwtMjc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDR9.jMTtFTKc6_SkKHiRjN_AgQ4_t7cuKV_CmdlaJFmvwoA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4OSIsImVtYWlsIjoiZW1haWwtMjc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDR9.jMTtFTKc6_SkKHiRjN_AgQ4_t7cuKV_CmdlaJFmvwoA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8de069af-cac6-45eb-a3a5-b7b7597a75aa",
    "url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa",
    "created_at": "2016-02-19T02:04:04Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2467",
    "organization_guid": "9ee3f84b-01be-4d86-a991-70ca9157cef6",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/9ee3f84b-01be-4d86-a991-70ca9157cef6",
    "developers_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/developers",
    "managers_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/managers",
    "auditors_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/auditors",
    "apps_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/apps",
    "routes_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/routes",
    "domains_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/domains",
    "service_instances_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/service_instances",
    "app_events_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/app_events",
    "events_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/events",
    "security_groups_url": "/v2/spaces/8de069af-cac6-45eb-a3a5-b7b7597a75aa/security_groups"
  }
}

Headers

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