Skip to content
You are reading the unreleased documentation. No version is released yet, and these pages describe code that is not in a release.

Audit log (admin API)

Admin routes of the audit log module. Every route needs a staff session and the permission named on it; send X-Resolve-Locale: false to receive every locale of a translatable field for editing.

Search audit log entries

Parameters:

  • action in query (string, optional).
  • actor in query (string, max length 120, optional).
  • entityType in query (string, optional).
  • from in query (string, optional).
  • page in query (number, min 1, optional).
  • pageSize in query (number, min 1, max 100, optional).
  • to in query (string, optional).
  • userId in query (string, optional).

Responses:

  • 200: no description.

GET /v1/admin/audit-log/{entityType}/{entityId}

Section titled “GET /v1/admin/audit-log/{entityType}/{entityId}”

List audit log entries for one entity

Parameters:

  • entityId in path (string, required).
  • entityType in path (string, required).
  • action in query (string, optional).
  • actor in query (string, max length 120, optional).
  • entityType in query (string, optional).
  • from in query (string, optional).
  • page in query (number, min 1, optional).
  • pageSize in query (number, min 1, max 100, optional).
  • to in query (string, optional).
  • userId in query (string, optional).

Responses:

  • 200: no description.