Home
Version 3
Organizations API

Organizations API

Disassociate Auditor with the Organization by Username

DELETE v2/organizations/:guid/auditors

Request

Route

DELETE v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NyIsImVtYWlsIjoiZW1haWwtMTAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.6FNuhu8wbsjByxDpLIYvTqw-kVPV-IngucpoyXYACJY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NyIsImVtYWlsIjoiZW1haWwtMTAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.6FNuhu8wbsjByxDpLIYvTqw-kVPV-IngucpoyXYACJY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "97cdba89-1ec4-4f27-bb80-7744695d71bc",
    "url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc",
    "created_at": "2015-09-30T23:30:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1282",
    "billing_enabled": false,
    "quota_definition_guid": "81b36e1b-2458-4171-846a-9751243b9595",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/81b36e1b-2458-4171-846a-9751243b9595",
    "spaces_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/spaces",
    "domains_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/domains",
    "private_domains_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/private_domains",
    "users_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/users",
    "managers_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/managers",
    "billing_managers_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/billing_managers",
    "auditors_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/auditors",
    "app_events_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/app_events",
    "space_quota_definitions_url": "/v2/organizations/97cdba89-1ec4-4f27-bb80-7744695d71bc/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3519f298-405a-4764-8513-33dd7671256e
Content-Length: 1300
X-Content-Type-Options: nosniff