Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.u8W3ARrpsLVgeG1LrO0S9jvfk55nTK9iYQCb6nkqny0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.u8W3ARrpsLVgeG1LrO0S9jvfk55nTK9iYQCb6nkqny0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "9188ace4-27e1-41bb-b7c5-1ccb45fbe310",
    "url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310",
    "created_at": "2016-01-13T17:29:31Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-65",
    "organization_guid": "ea311e1a-ae6a-4fac-8006-1303344f2bb2",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/ea311e1a-ae6a-4fac-8006-1303344f2bb2",
    "developers_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/developers",
    "managers_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/managers",
    "auditors_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/auditors",
    "apps_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/apps",
    "routes_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/routes",
    "domains_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/domains",
    "service_instances_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/service_instances",
    "app_events_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/app_events",
    "events_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/events",
    "security_groups_url": "/v2/spaces/9188ace4-27e1-41bb-b7c5-1ccb45fbe310/security_groups"
  }
}

Headers

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