Associate Auditor with the Organization by Username
PUT v2/organizations/:guid/auditors
Request
Route
PUT v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/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/801aa295-59b0-4c52-9fb8-fb159fe3db0a/auditors" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.Ggeufg1cobxacSA304-dww05JgYiAXS9a7axAgxN774" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "801aa295-59b0-4c52-9fb8-fb159fe3db0a",
"url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a",
"created_at": "2015-09-30T23:30:42Z",
"updated_at": null
},
"entity": {
"name": "name-1280",
"billing_enabled": false,
"quota_definition_guid": "6cbd8028-996f-404c-a427-b1a17f0944de",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/6cbd8028-996f-404c-a427-b1a17f0944de",
"spaces_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/spaces",
"domains_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/domains",
"private_domains_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/private_domains",
"users_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/users",
"managers_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/managers",
"billing_managers_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/billing_managers",
"auditors_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/auditors",
"app_events_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/app_events",
"space_quota_definitions_url": "/v2/organizations/801aa295-59b0-4c52-9fb8-fb159fe3db0a/space_quota_definitions"
}
}
Headers