Associate Auditor with the Organization by Username
PUT v2/organizations/:guid/auditors
Request
Route
PUT v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/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": "user@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/auditors" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ4MDM4OTQzfQ.VZhj6FWJCHLwBiCm98E9zKa2IJDo-V7QxE31FGAlrQ4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "25027970-dd1c-44af-8fe1-3097a8dca1d4",
"url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4",
"created_at": "2015-11-13T17:02:23Z",
"updated_at": null
},
"entity": {
"name": "name-44",
"billing_enabled": false,
"quota_definition_guid": "7905ebbf-411d-4fde-9669-0552a5f16cf1",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/7905ebbf-411d-4fde-9669-0552a5f16cf1",
"spaces_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/spaces",
"domains_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/domains",
"private_domains_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/private_domains",
"users_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/users",
"managers_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/managers",
"billing_managers_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/billing_managers",
"auditors_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/auditors",
"app_events_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/app_events",
"space_quota_definitions_url": "/v2/organizations/25027970-dd1c-44af-8fe1-3097a8dca1d4/space_quota_definitions"
}
}
Headers