Associate Auditor with the Organization by Username
PUT v2/organizations/:guid/auditors
Request
Route
PUT v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/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/42798c5f-3be9-4add-b928-671bc2375f94/auditors" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.zvum5eVm2_98W6btVpVNmvgJj3rDuBTrBF39YseGhyM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "42798c5f-3be9-4add-b928-671bc2375f94",
"url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94",
"created_at": "2015-10-07T00:35:42Z",
"updated_at": null
},
"entity": {
"name": "name-2174",
"billing_enabled": false,
"quota_definition_guid": "bcacdf6b-4dd6-4762-bb6c-7d7e6f07ec9f",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/bcacdf6b-4dd6-4762-bb6c-7d7e6f07ec9f",
"spaces_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/spaces",
"domains_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/domains",
"private_domains_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/private_domains",
"users_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/users",
"managers_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/managers",
"billing_managers_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/billing_managers",
"auditors_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/auditors",
"app_events_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/app_events",
"space_quota_definitions_url": "/v2/organizations/42798c5f-3be9-4add-b928-671bc2375f94/space_quota_definitions"
}
}
Headers