Overview /
Operations /
Create an audit action
Create an audit action
post
https://api.flactrum.com/v1/audit-actions
| Required scope | audits.write |
| Success status | 201 |
| Returns | One AuditAction object |
Request body
| Field | Type | Description |
|---|---|---|
| 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
| Field | Type | Description |
|---|---|---|
| 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 POST 'https://api.flactrum.com/v1/audit-actions' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"branch_id": "01m43mzctcck7mn0yznw74tn4j",
"title": "Buzdolabı termostatı değiştirilecek",
"due_on": "2026-10-07"
}'
HTTP 201 · 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": "open",
"is_overdue": false,
"completed_at": null,
"created_at": "2026-10-04T14:27:06+00:00",
"updated_at": "2026-10-04T14:27:06+00:00"
}
}