Associate Auditor with the Organization by Username
PUT v2/organizations/:guid/auditors
Request
Route
PUT v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/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/50dfb04d-cd49-477d-a54c-32e00e180022/auditors" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOSIsImVtYWlsIjoiZW1haWwtMzAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzh9.pjRq0PDShIPf9VNk_PPIWHYxnx334WgIrVHcbxITPKA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "50dfb04d-cd49-477d-a54c-32e00e180022",
"url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022",
"created_at": "2015-11-30T23:38:58Z",
"updated_at": null
},
"entity": {
"name": "name-2476",
"billing_enabled": false,
"quota_definition_guid": "8de0754e-bb1e-4739-be6e-91104bbab281",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/8de0754e-bb1e-4739-be6e-91104bbab281",
"spaces_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/spaces",
"domains_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/domains",
"private_domains_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/private_domains",
"users_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/users",
"managers_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/managers",
"billing_managers_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/billing_managers",
"auditors_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/auditors",
"app_events_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/app_events",
"space_quota_definitions_url": "/v2/organizations/50dfb04d-cd49-477d-a54c-32e00e180022/space_quota_definitions"
}
}
Headers