Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Approve Bulk Api V1 Workstreams Cycles Approve Bulk Post

post/api/v1/workstreams/cycles/approve-bulk

Approve or reject N awaiting-approval task instances at once

Resolve a wave of approval gates in one call — the 'approve all N' triage button. Each (cycle, task) pair is a cycle paused at an approval gate; the same `decision` is fanned to every pair. Fail-soft: a bad or already-resolved pair returns an `error` result without failing the batch. Each successful pair records approval metadata and signals its Temporal workflow to resume. **Authentication Required:** JWT Bearer token

Request bodyapplication/json

FieldTypeDescription
pairsrequiredCycleTaskPair[]The (cycle, task) instances to resolve
item shape
decision"approve" | "reject"Decision applied to every pair
approvereject
commentsstring | nullOptional note recorded on every resolution

Responses

200Per-pair results + roll-up counts
FieldTypeDescription
resultsrequiredBulkApprovalResult[]One result per requested pair, in order
item shape
approved_countinteger—
rejected_countinteger—
error_countinteger—
401Unauthorized
422Validation Error
FieldTypeDescription
detailValidationError[]—
item shape
curl https://api.dev.arch.ie/api/v1/workstreams/cycles/approve-bulk \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "pairs": [
         {
           "cycle_id": "string",
           "task_id": "string"
         }
       ],
       "decision": "approve",
       "comments": null
     }'
API Reference · Archie for developers