Home
Version 3
Organizations API

Organizations API

Disassociate Auditor with the Organization by Username

DELETE v2/organizations/:guid/auditors

Request

Route

DELETE v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NSIsImVtYWlsIjoiZW1haWwtMjUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.557DLgL_o4ErYIZWM-wJCvJAckw-XDvc8aZpYMxZOu0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NSIsImVtYWlsIjoiZW1haWwtMjUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.557DLgL_o4ErYIZWM-wJCvJAckw-XDvc8aZpYMxZOu0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "3feaa53d-ed3b-4e9b-9f95-07bd0feaf357",
    "url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357",
    "created_at": "2015-10-07T00:35:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2176",
    "billing_enabled": false,
    "quota_definition_guid": "099a2162-cdad-4aea-a732-ef6582fdaefb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/099a2162-cdad-4aea-a732-ef6582fdaefb",
    "spaces_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/spaces",
    "domains_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/domains",
    "private_domains_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/private_domains",
    "users_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/users",
    "managers_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/managers",
    "billing_managers_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/billing_managers",
    "auditors_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/auditors",
    "app_events_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/app_events",
    "space_quota_definitions_url": "/v2/organizations/3feaa53d-ed3b-4e9b-9f95-07bd0feaf357/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2eb12778-f01e-4c5b-8774-c701d24ded4e
Content-Length: 1300
X-Content-Type-Options: nosniff