Home
Version 3
Spaces API

Spaces API

Remove Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NSIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDV9.sCXhgBpywGwFn1vkfoRhtUjdWfkcxMGZaV6cmbCIaSQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NSIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDV9.sCXhgBpywGwFn1vkfoRhtUjdWfkcxMGZaV6cmbCIaSQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6ee704bb-fc88-40f6-9ab9-02fe8df35730",
    "url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730",
    "created_at": "2016-04-22T19:33:25Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-979",
    "organization_guid": "c6aa1f1e-e5b4-4eff-8ae5-3a430866f5ea",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/c6aa1f1e-e5b4-4eff-8ae5-3a430866f5ea",
    "developers_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/developers",
    "managers_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/managers",
    "auditors_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/auditors",
    "apps_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/apps",
    "routes_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/routes",
    "domains_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/domains",
    "service_instances_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/service_instances",
    "app_events_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/app_events",
    "events_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/events",
    "security_groups_url": "/v2/spaces/6ee704bb-fc88-40f6-9ab9-02fe8df35730/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9af51679-68ce-4e4c-a8ae-7c88b45325a6
Content-Length: 1277
X-Content-Type-Options: nosniff