get_audit_reasons
Retrieve audit-reason codes grouped by operation type to supply required audit reasons for Laserfiche delete or export actions.
Instructions
Return the audit-reason codes the authenticated user is allowed to supply.
Use before delete_entry or get_document_edoc (with export
auditing) when LF_REQUIRE_AUDIT_REASON=true or when the user is
asking for an audited delete. The response is grouped by operation
type — pick an ID from the correct group.
Returns: Dict shaped roughly as {"deleteEntry": [{id, name, ...}], "exportDocument": [...], ...}. Each item has id, name, and
description. The id is what you pass to delete_entry as
audit_reason_id.
On failure: returns {"mode": "error", "error": <slug>, ...}.
Common slugs: auth_failed if the account isn't permitted to audit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||