Skip to content

Fixes #CS-1453 - Add Audit log REST API#876

Merged
ralf401 merged 2 commits into
pre-releasefrom
rsc/fixes/cs-1453
Jul 23, 2026
Merged

Fixes #CS-1453 - Add Audit log REST API#876
ralf401 merged 2 commits into
pre-releasefrom
rsc/fixes/cs-1453

Conversation

@ralf401

@ralf401 ralf401 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Ralf and others added 2 commits July 23, 2026 11:59
Add the REST-API reference page for the new audit-log feature so the
endpoint shows up under 'Administration via REST API' next to the other
admin endpoints (calendar, checklist, generic-cti, group, role, ...).

The new endpoint is read-only:

  GET /api/v1/audit_logs
  GET /api/v1/audit_logs/{id}
  GET /api/v1/audit_logs/search
  POST /api/v1/audit_logs/search

Required permission: admin.audit_log.

Examples (request payloads and JSON responses) are taken straight from
the model, the migration, the route definition, the controller
(reads/writes via model_index_render / model_show_render /
model_search_render) and the request spec, and were verified end-to-end
against a running zammad:develop instance (10 real entries; sort_by /
order_by / with_total_count behaviour confirmed).

Field reference covers every column on audit_logs (user_id /
user_fullname, action_type, auditable_id / auditable_type /
auditable_name, value_from / value_to, source_ip, preferences,
created_at / updated_at) and the lifecycle note documents the
12-month retention enforced by the 'Clean up AuditLog' scheduler.

Files:
- api/audit_log.rst: new (256 lines).
- index.rst: register /api/audit_log under the REST API toctree.

Refs zammad/zammad#CS-1453
@github-actions

Copy link
Copy Markdown

Artifacts

Produced during runtime

📦 html-7150acf

@ralf401
ralf401 requested a review from rolfschmidt July 23, 2026 10:09
@ralf401
ralf401 merged commit 7e8660b into pre-release Jul 23, 2026
1 check passed
@ralf401
ralf401 deleted the rsc/fixes/cs-1453 branch July 23, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants