Disassociate Auditor with the Organization by Username
DELETE v2/organizations/:guid/auditors
Request
Route
DELETE v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/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": "auditor@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/auditors" -d '{
"username": "auditor@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNCIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzh9.mrryjHrEIVadOaJXSGxRVUwhWL4h1Yi_zf0vQbx4AeU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "0cad2557-71c4-40ed-9501-8584064b90a1",
"url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1",
"created_at": "2015-11-03T00:53:58Z",
"updated_at": null
},
"entity": {
"name": "name-808",
"billing_enabled": false,
"quota_definition_guid": "42554c07-27b7-459a-9a21-b98b111dfd2f",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/42554c07-27b7-459a-9a21-b98b111dfd2f",
"spaces_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/spaces",
"domains_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/domains",
"private_domains_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/private_domains",
"users_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/users",
"managers_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/managers",
"billing_managers_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/billing_managers",
"auditors_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/auditors",
"app_events_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/app_events",
"space_quota_definitions_url": "/v2/organizations/0cad2557-71c4-40ed-9501-8584064b90a1/space_quota_definitions"
}
}
Headers