Audit logs

Set the workspace audit log retention

POST https://demo.notifuse.com/api/workspaces.setAuditLogSettings

Owners only. retention_days absent means the deployment default; 0 keeps every entry forever; otherwise 30 to 3650. Works in every licence state.

Authorizations

Authorization string header required

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

Body application/json

workspace_id string required
settings object required

The workspace's retention. retention_days absent means the deployment default (365 days unless a root user changed it); 0 keeps every entry forever.

Show 1 child attributes Hide 1 child attributes
retention_days integer

0, or a value between 30 and 3650.

Min 0 Max 3650 Example 365

Response

200 Saved object
status string
Example success
message string
400 Invalid retention object
error string required

Error message

403 Not an owner object
error string required

Error message