Overview / Operations / Save answers

Save answers

post https://api.flactrum.com/v1/checklist-submissions/{submission}/answers

Writes answers into an open draft. Item ids that do not belong to the checklist are ignored; if none of them match, the request is rejected rather than silently doing nothing.

Required scope checklists.submit
Success status200
Returns One ChecklistSubmission object

Parameters

NameInTypeDescription
submission * path string ULID of the record.

Request body

FieldTypeDescription
answers * array Each entry is {item_id, value}. Sending an item twice overwrites it; an empty value clears the answer.

Response fields

FieldTypeDescription
id string —
checklist_id string —
branch_id string —
user_id string —
status string —
score integer|null Calculated on completion, 0–100.
submitted_at string|null —
answers array item_id and value pairs.

Examples

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

curl -X POST 'https://api.flactrum.com/v1/checklist-submissions/01m43mzc6jynd7nkd1pdt8qdex/answers' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "answers": [
        {
            "item_id": "01m43mzc4n4q0thpea8w4ka262",
            "value": "4"
        }
    ]
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzc6jynd7nkd1pdt8qdex",
        "checklist_id": "01m43mzc4523f88t6zg0sgdhsc",
        "checklist": {
            "id": "01m43mzc4523f88t6zg0sgdhsc",
            "name": "Açılış kontrolü",
            "description": "Şube açılışında bakılacaklar.",
            "is_active": false,
            "created_at": "2026-10-04T14:27:05+00:00",
            "updated_at": "2026-10-04T14:27:05+00:00"
        },
        "branch_id": "01m43mzc3m71htbhs1dw3zzgbm",
        "user_id": "01m43mzc3gcync24hhrjr33138",
        "status": "incomplete",
        "score": null,
        "submitted_at": "2026-10-04T14:27:05+00:00",
        "answers": [
            {
                "item_id": "01m43mzc4n4q0thpea8w4ka262",
                "value": "4"
            }
        ],
        "created_at": "2026-10-04T14:27:05+00:00",
        "updated_at": "2026-10-04T14:27:05+00:00"
    }
}