Home
Version 3
Organizations API

Organizations API

Disassociate Auditor with the Organization by Username

DELETE v2/organizations/:guid/auditors

Request

Route

DELETE v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MyIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.eASp5HJYJd43fNCgJreH-KWSL7hgCzKEIyltGFssog8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MyIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.eASp5HJYJd43fNCgJreH-KWSL7hgCzKEIyltGFssog8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "396fc048-c83a-4f6e-addc-ccc17184ef8d",
    "url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d",
    "created_at": "2015-12-22T18:28:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-766",
    "billing_enabled": false,
    "quota_definition_guid": "7f7a5c93-bf7e-4362-b967-693c75857c09",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/7f7a5c93-bf7e-4362-b967-693c75857c09",
    "spaces_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/spaces",
    "domains_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/domains",
    "private_domains_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/private_domains",
    "users_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/users",
    "managers_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/managers",
    "billing_managers_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/billing_managers",
    "auditors_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/auditors",
    "app_events_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/app_events",
    "space_quota_definitions_url": "/v2/organizations/396fc048-c83a-4f6e-addc-ccc17184ef8d/space_quota_definitions"
  }
}

Headers

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