Audit Log
Base path: /api/data/audit-log
All audit log CRUD endpoints are registered but not yet implemented — handlers are empty stubs.
POST /api/data/audit-log
Create a new audit log entry.
Auth: Session cookie required
Tenant: Scoped via x-tenant-id header
Not yet implemented — returns no response.
Audit Log Schema Reference
| Field | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | Tenant identifier |
| actorId | string | Yes | ID of the user who performed the action |
| action | string | Yes | Action name (e.g. CREATE, UPDATE) |
| entityType | string | Yes | Type of entity affected |
| entityId | string | Yes | ID of the entity affected |
| meta | object | No | Arbitrary metadata (default {}) |
| createdAt | date | Yes | Timestamp of the action |
GET /api/data/audit-log/:id
Retrieve an audit log entry by ID.
Auth: Session cookie required
Tenant: Scoped via x-tenant-id header
Not yet implemented — returns no response.
PATCH /api/data/audit-log/:id
Update an audit log entry by ID.
Auth: Session cookie required
Tenant: Scoped via x-tenant-id header
Not yet implemented — returns no response.
DELETE /api/data/audit-log/:id
Delete an audit log entry by ID.
Auth: Session cookie required
Tenant: Scoped via x-tenant-id header
Not yet implemented — returns no response.