Home
Version 3
Organizations API

Organizations API

Disassociate Auditor with the Organization by Username

DELETE v2/organizations/:guid/auditors

Request

Route

DELETE v2/organizations/413c50f2-7af7-4649-8f56-424444718837/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtODBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.ssPfhVRwMTFl4tbbTixqPahnUKqDzMRzkLwwNk4vm9w
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/413c50f2-7af7-4649-8f56-424444718837/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtODBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjMwMH0.ssPfhVRwMTFl4tbbTixqPahnUKqDzMRzkLwwNk4vm9w" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "413c50f2-7af7-4649-8f56-424444718837",
    "url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837",
    "created_at": "2015-10-13T17:31:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-285",
    "billing_enabled": false,
    "quota_definition_guid": "5124fce3-190e-4f52-9050-6cefe4076440",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/5124fce3-190e-4f52-9050-6cefe4076440",
    "spaces_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/spaces",
    "domains_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/domains",
    "private_domains_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/private_domains",
    "users_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/users",
    "managers_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/managers",
    "billing_managers_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/billing_managers",
    "auditors_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/auditors",
    "app_events_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/app_events",
    "space_quota_definitions_url": "/v2/organizations/413c50f2-7af7-4649-8f56-424444718837/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d847a21d-43d9-4f7f-a3c6-c9dac19b2716
Content-Length: 1299
X-Content-Type-Options: nosniff