Home
Version 3
Organizations API

Organizations API

Disassociate Auditor with the Organization by Username

DELETE v2/organizations/:guid/auditors

Request

Route

DELETE v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MyIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzl9.XpHUKQ9IdT5JV2AQtjd8IlgLp0g5rykpHd11MDmvDlw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MyIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzl9.XpHUKQ9IdT5JV2AQtjd8IlgLp0g5rykpHd11MDmvDlw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0",
    "url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0",
    "created_at": "2016-01-13T17:29:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-541",
    "billing_enabled": false,
    "quota_definition_guid": "b2dae440-8320-4625-9724-a9ca26c4fbc3",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b2dae440-8320-4625-9724-a9ca26c4fbc3",
    "spaces_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/spaces",
    "domains_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/domains",
    "private_domains_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/private_domains",
    "users_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/users",
    "managers_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/managers",
    "billing_managers_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/billing_managers",
    "auditors_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/auditors",
    "app_events_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/app_events",
    "space_quota_definitions_url": "/v2/organizations/7ff6e809-ec4b-4c97-a2a1-5e7e88046ed0/space_quota_definitions"
  }
}

Headers

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