Organizations API

Remove Auditor from the Organization by Username

POST v2/organizations/:guid/auditors/remove

Request

Route

POST v2/organizations/9a7c4fa2-4a86-4514-9d9c-9658cbb6798e/auditors/remove

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
origin The UAA origin
  • ldap
  • uaa
{
  "username": "[email protected]",
  "origin": "ldap"
}

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/remove" -d '{
      "username": "[email protected]",
      "origin": "ldap"
    }' -X POST \
      -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