Skip to content

Complete multiple tasks in one request​

POST
/api/tasks/bulk/complete

Built for the §6.1 notification batch checklist: the iOS content
extension commits N staged check-marks with one request. Delegates to
the same core bulk-done path — one transaction, ONE undo entry.

Quotas are skipped unless close_period: true, as for
/api/tasks/bulk/done (and refused when nothing else is in the batch).

Quota prompts (2026-09-24): prompts acts on quota prompts in the SAME
transaction and undo entry — a checklist commit or a slot's "Considered
all" mixing reminders and prompts is one Undo. Each entry is a
prompt_key string (consider it) or { key, did } (did: true = the
square checkbox: log progress and consider it). A quota is acted on
through its prompt, never completed by id. ids may be empty when
prompts is not. A stale-date or foreign key refuses the whole batch.

Authorizations​

bearerAuth

API token created via POST /api/tokens or the db:create-token CLI command

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
"ids": [
0
],
"close_period": true,
"prompts": [
"string"
]
}

Responses​

Completion result

application/json
JSON
{
"data": {
"tasks_affected": 0,
"recurring_count": 0,
"one_off_count": 0,
"quota_skipped": 0,
"prompts_considered": 0,
"prompts_did": 0
}
}

Samples​

Powered by VitePress OpenAPI