Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.QDiVgzErGFrK4eYJ28NDElwR8y7OSsR5mphfYXmbQs4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.QDiVgzErGFrK4eYJ28NDElwR8y7OSsR5mphfYXmbQs4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "1c58c221-aeef-4966-860a-974d6907cbba",
    "url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba",
    "created_at": "2015-10-13T17:31:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-99",
    "organization_guid": "9979f793-063d-498e-b55b-eb3eaf0eda83",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/9979f793-063d-498e-b55b-eb3eaf0eda83",
    "developers_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/developers",
    "managers_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/managers",
    "auditors_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/auditors",
    "apps_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/apps",
    "routes_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/routes",
    "domains_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/domains",
    "service_instances_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/service_instances",
    "app_events_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/app_events",
    "events_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/events",
    "security_groups_url": "/v2/spaces/1c58c221-aeef-4966-860a-974d6907cbba/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 62dad127-6555-4b70-961a-aa2bc720586d
Content-Length: 1276
X-Content-Type-Options: nosniff