update_transactions is the single primitive — it covers category, tags, and a comment in one atomic op per row, for up to 50 transactions per call.
All tools on this page are Write scope. See Categorization for category-only writes.
update_transactions
Compound write for up to 50 transactions at once. Each operation can set a category (category_slug), add tags (tags_to_add), remove tags (tags_to_remove), and attach a comment — all atomically per transaction. This is the tool for closing review work (set category + remove needs-review + explain) in one call.
Every change lands as a single linked annotation per operation, so the activity timeline reads as one event per transaction rather than a separate entry for each change.
Compound op semantics
What “compound” means here. Each element in the
operations array is a bundle of mutations targeting one transaction. Within a single operation:- The category, tag additions, tag removals, and comment are applied atomically — either all land or none do.
- The annotations written for those changes are linked so the activity timeline reads as one event, not four.
- Tag
notefields are preserved on bothtag_addedandtag_removedannotations.
on_error behavior
continue(default) — each operation runs in its own DB transaction. A failure on row 17 doesn’t roll back rows 1–16. The response returns per-rowstatusso you can retry the failed ones.abort— the whole batch runs in one DB transaction. The first error rolls back every operation and the response includesaborted: true.
Parameters
Array of per-transaction operations. Max 50. See the operation shape below.
continue or abort.Operation shape
UUID or short ID.
Category slug to set. Sets
category_override = 'agent' (skips the row if a user has already set it to 'user'). Omit to leave the category unchanged.List of
{slug, note?} entries. Auto-creates persistent tags if the slug is unknown.List of
{slug, note?} entries. note is recommended for workflow tags like needs-review.Free-form comment written as an annotation. Max 10000 chars. Markdown supported.