Audit Work Activity
Work activity trail (work changes + split changes)
GET /audit/work//activity
GET
Work activity trail (work changes + split changes)
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
GET /audit/work//activity Returns the audit rows for a work AND for its writer links (CWRWorkWriter, i.e. split changes) in one request, newest first.
Why this is not two calls to /audit/entity/...:
a CWRWorkWriter audit row is keyed by its own link id, and a caller
can only enumerate the link ids that currently exist on the work.
A removed writer’s link is gone, so fanning out by link id would
silently omit precisely the rows a split replacement produced — the
record of what was taken away. This endpoint resolves link rows from
the workId captured inside each audit row’s own snapshot
(beforeData for UPDATE/DELETE, afterData for CREATE/UPDATE), never
by joining the live table, which is what keeps removals visible.
entityType is preserved per row rather than flattened, so a client
can label and filter “work edited” versus “shares edited” without
inspecting diff keys.
Authorization:
- Required role:
adminor higher (same gate as the entity trail)
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
The work's id. Must be a uuid — a malformed value is rejected with 400 rather than run as a query that could only ever return an empty list, which would read as "no activity".