Overview / Operations / Update an audit action

Update an audit action

patch https://api.flactrum.com/v1/audit-actions/{action}
Required scope audits.write
Success status200
Returns One AuditAction object

Parameters

NameInTypeDescription
action * path string ULID of the record.

Request body

FieldTypeDescription
branch_id * string —
title * string —
description string|null —
submission_id string|null —
checklist_item_id string|null —
assigned_to string|null —
due_on string|null —
status string Setting it to done stamps completed_at; moving it back clears it.

Response fields

FieldTypeDescription
id string —
branch_id string —
submission_id string|null —
checklist_item_id string|null —
title string —
description string|null —
assigned_to string|null User id the action is assigned to.
due_on string|null —
status string —
is_overdue boolean —
completed_at string|null —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X PATCH 'https://api.flactrum.com/v1/audit-actions/01m43mzctxsmv0erxezd5ndyxe' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "status": "done"
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzctxsmv0erxezd5ndyxe",
        "branch_id": "01m43mzctcck7mn0yznw74tn4j",
        "submission_id": null,
        "checklist_item_id": null,
        "title": "Buzdolabı termostatı değiştirilecek",
        "description": null,
        "assigned_to": null,
        "due_on": "2026-10-07",
        "status": "done",
        "is_overdue": false,
        "completed_at": "2026-10-04T14:27:06+00:00",
        "created_at": "2026-10-04T14:27:06+00:00",
        "updated_at": "2026-10-04T14:27:06+00:00"
    }
}