Home
Version 3
Organizations API

Organizations API

Disassociate Auditor with the Organization by Username

DELETE v2/organizations/:guid/auditors

Request

Route

DELETE v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NiIsImVtYWlsIjoiZW1haWwtMjk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzB9.c7oLRrL_lxCAx4e8FyhNKh-CPSuIzFLgI5yjoXHuC9U
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NiIsImVtYWlsIjoiZW1haWwtMjk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzB9.c7oLRrL_lxCAx4e8FyhNKh-CPSuIzFLgI5yjoXHuC9U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "ac03a719-489b-4aa4-b3e3-82862aac8147",
    "url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147",
    "created_at": "2015-10-15T23:52:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2405",
    "billing_enabled": false,
    "quota_definition_guid": "62c787cc-747e-407c-8eb9-c9cd064d2d29",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/62c787cc-747e-407c-8eb9-c9cd064d2d29",
    "spaces_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/spaces",
    "domains_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/domains",
    "private_domains_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/private_domains",
    "users_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/users",
    "managers_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/managers",
    "billing_managers_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/billing_managers",
    "auditors_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/auditors",
    "app_events_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/app_events",
    "space_quota_definitions_url": "/v2/organizations/ac03a719-489b-4aa4-b3e3-82862aac8147/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7fd6e7ce-449d-445f-bc05-30d20cbe7019
Content-Length: 1300
X-Content-Type-Options: nosniff