SDK reference
Audit log
Each route's function in the SDK, its call beside the same request in cURL.
orgAudit
GET/
One page of the audit log, newest first. Filter by action (an action or a category), actor or target. The first page also returns retentionDays.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/audit' \
-H "Authorization: Bearer $CACTIVE_TOKEN"orgAuditExport
GET/
Daily JSON Lines export of the audit log into one of the org's buckets (audit/<yyyy-mm-dd>.jsonl).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/audit/export' \
-H "Authorization: Bearer $CACTIVE_TOKEN"putOrgAuditExport
PUT/
Turns the daily export on (bucketId: an active bucket of the org) or off (null). Owners and admins.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/audit/export' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"bucketId": "<bucketId>"
}'