Home
Version 3
Organizations API

Organizations API

Remove Auditor from the Organization

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

Request

Route

DELETE /v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/auditors/uaa-id-76

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/auditors/uaa-id-76" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc3IiwiZW1haWwiOiJlbWFpbC01MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzkwfQ.yZUVp3jEpMBlHVwtNYQE1pStCRxfFr_h7Chnigt1IdI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "134e1c7f-3ab6-4903-a42b-bfa398922e0e",
    "url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e",
    "created_at": "2015-07-27T22:43:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-191",
    "billing_enabled": false,
    "quota_definition_guid": "3862c44f-747f-429b-b2e4-0313a36a8e9d",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3862c44f-747f-429b-b2e4-0313a36a8e9d",
    "spaces_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/spaces",
    "domains_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/domains",
    "private_domains_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/private_domains",
    "users_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/users",
    "managers_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/managers",
    "billing_managers_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/billing_managers",
    "auditors_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/auditors",
    "app_events_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/app_events",
    "space_quota_definitions_url": "/v2/organizations/134e1c7f-3ab6-4903-a42b-bfa398922e0e/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fe79a967-4972-408a-8bfe-cc87a0fcc52b
Content-Length: 1299
X-Content-Type-Options: nosniff