Home
Version 3
Spaces API

Spaces API

Remove Auditor from the Space

DELETE /v2/spaces/:guid/auditors/:auditor_guid

Request

Route

DELETE /v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/auditors/uaa-id-130

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
auditor_guid The guid of the auditor

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MH0.l3htiKu0Mhy0t9taazexSwC-KkmIcFMNg13_9lDpTKs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/auditors/uaa-id-130" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MH0.l3htiKu0Mhy0t9taazexSwC-KkmIcFMNg13_9lDpTKs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "45281da1-4645-43e1-a966-c5f803842f34",
    "url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34",
    "created_at": "2015-09-30T23:30:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1206",
    "organization_guid": "e6288cea-9a79-4853-96a2-362c7ce56793",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/e6288cea-9a79-4853-96a2-362c7ce56793",
    "developers_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/developers",
    "managers_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/managers",
    "auditors_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/auditors",
    "apps_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/apps",
    "routes_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/routes",
    "domains_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/domains",
    "service_instances_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/service_instances",
    "app_events_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/app_events",
    "events_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/events",
    "security_groups_url": "/v2/spaces/45281da1-4645-43e1-a966-c5f803842f34/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ece86746-118c-40c0-8512-346c7747f1bf
Content-Length: 1278
X-Content-Type-Options: nosniff