Home
Version 3
Organizations API

Organizations API

Disassociate Auditor with the Organization by Username

DELETE v2/organizations/:guid/auditors

Request

Route

DELETE v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/auditors

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "auditor@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ4MDM4OTQzfQ.k0quMBmnlY8DZAFzSQw_YfvmBRhD82mKPFQRtyUzQKU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ4MDM4OTQzfQ.k0quMBmnlY8DZAFzSQw_YfvmBRhD82mKPFQRtyUzQKU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5166eb90-b237-454c-823a-eafdcecd183c",
    "url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c",
    "created_at": "2015-11-13T17:02:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-46",
    "billing_enabled": false,
    "quota_definition_guid": "b71f4b96-ab8b-4c66-bcb2-4c9e6d214c61",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b71f4b96-ab8b-4c66-bcb2-4c9e6d214c61",
    "spaces_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/spaces",
    "domains_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/domains",
    "private_domains_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/private_domains",
    "users_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/users",
    "managers_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/managers",
    "billing_managers_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/billing_managers",
    "auditors_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/auditors",
    "app_events_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/app_events",
    "space_quota_definitions_url": "/v2/organizations/5166eb90-b237-454c-823a-eafdcecd183c/space_quota_definitions"
  }
}

Headers

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