Skip to main content
PATCH
/
governance
/
audit
/
settings
Update audit settings
curl --request PATCH \
  --url https://api.example.com/governance/audit/settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "retention_days": 1840
}
'
{
  "org_id": "<string>",
  "retention_days": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to update audit settings.

retention_days
integer
required

Retention period in days (30-3650)

Required range: 30 <= x <= 3650

Response

Successful Response

Audit settings for an organization.

org_id
string
required

Organization ID

retention_days
integer
required

Number of days to retain audit logs

created_at
string<date-time>
required

When settings were created

updated_at
string<date-time>
required

When settings were last updated