Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzR9.E76Xr4OdUnYoJm4a_uzBKXlVw6j8IFggzN3_Ld685ck
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzR9.E76Xr4OdUnYoJm4a_uzBKXlVw6j8IFggzN3_Ld685ck" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c989b91a-0bf3-41f0-9add-20b69089f794",
    "url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794",
    "created_at": "2016-03-17T21:41:14Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-795",
    "organization_guid": "e9bf0e31-0529-4ffc-95b3-2b09d4dda390",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/e9bf0e31-0529-4ffc-95b3-2b09d4dda390",
    "developers_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/developers",
    "managers_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/managers",
    "auditors_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/auditors",
    "apps_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/apps",
    "routes_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/routes",
    "domains_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/domains",
    "service_instances_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/service_instances",
    "app_events_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/app_events",
    "events_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/events",
    "security_groups_url": "/v2/spaces/c989b91a-0bf3-41f0-9add-20b69089f794/security_groups"
  }
}

Headers

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