Home
Version 3
Spaces API

Spaces API

Remove Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtODFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyN30.7Reu5H6Rckyb6LxYMdJZlONUsnksYmCUU6uyxkAeQH4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtODFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyN30.7Reu5H6Rckyb6LxYMdJZlONUsnksYmCUU6uyxkAeQH4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5fc04a54-4409-4a29-9e37-132212b30abd",
    "url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd",
    "created_at": "2016-04-16T01:23:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-263",
    "organization_guid": "445ec59c-6515-4e68-8617-ca7dac9e7b9b",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/445ec59c-6515-4e68-8617-ca7dac9e7b9b",
    "developers_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/developers",
    "managers_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/managers",
    "auditors_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/auditors",
    "apps_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/apps",
    "routes_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/routes",
    "domains_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/domains",
    "service_instances_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/service_instances",
    "app_events_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/app_events",
    "events_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/events",
    "security_groups_url": "/v2/spaces/5fc04a54-4409-4a29-9e37-132212b30abd/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b7dd428d-4a72-48b6-8534-ca64b657296d
Content-Length: 1277
X-Content-Type-Options: nosniff