Home
Version 3
Organizations API

Organizations API

Remove Auditor from the Organization

DELETE /v2/organizations/:guid/auditors/:auditor_guid

Request

Route

DELETE /v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/auditors/uaa-id-169

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
auditor_guid The guid of the user

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0Mn0.Y00inVwPT7NuGMW6v8bVWFjCvsDD6znGO5dt3S4SEWU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/auditors/uaa-id-169" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MCIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0Mn0.Y00inVwPT7NuGMW6v8bVWFjCvsDD6znGO5dt3S4SEWU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "839e197b-314e-416f-b3c8-f3eabc26fdde",
    "url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde",
    "created_at": "2015-09-30T23:30:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1276",
    "billing_enabled": false,
    "quota_definition_guid": "3d177d9c-a46c-4782-b0c5-381a74f1903e",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3d177d9c-a46c-4782-b0c5-381a74f1903e",
    "spaces_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/spaces",
    "domains_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/domains",
    "private_domains_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/private_domains",
    "users_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/users",
    "managers_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/managers",
    "billing_managers_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/billing_managers",
    "auditors_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/auditors",
    "app_events_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/app_events",
    "space_quota_definitions_url": "/v2/organizations/839e197b-314e-416f-b3c8-f3eabc26fdde/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 10a2fb14-b10d-4759-9903-ced3b179a7b0
Content-Length: 1300
X-Content-Type-Options: nosniff