Organizations API

Remove Auditor with the Organization by Username (DEPRECATED)

DELETE v2/organizations/:guid/auditors

Request

Route

DELETE v2/organizations/9a7c4fa2-4a86-4514-9d9c-9658cbb6798e/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
{
  "username": "[email protected]"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMCIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.qGcOyI8B2L2p_tBINsqFFjAikKE6zQrmxZUVqGHWXrc
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/9a7c4fa2-4a86-4514-9d9c-9658cbb6798e/auditors" -d '{
  "username": "[email protected]"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMCIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.qGcOyI8B2L2p_tBINsqFFjAikKE6zQrmxZUVqGHWXrc" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: a6d108ba-6839-41d8-908c-2d812ae923d3
X-Content-Type-Options: nosniff