Beta

Update Tasks

Last updated Nov 19, 2026View as MarkdownAgent setup / MCP
PATCH
/v1/tasks

Changes up to 1,000 Tasks in one call, each as update_task would: tasks holds task_id, expected_revision and the changes of each. All or nothing, in order, one receipt; one Idempotency-Key per call makes a retry safe. Returns count, task_ids and each new revision, in the order sent. A refused Task: details.task_index is its place in tasks (from 0). Agents on MCP send the same list to update_task.

Authorization

headerAuthorizationBearer <token>

A signed-in SMB user's access token. Workspace-scoped operations also require SMB-Workspace-Id.

Header Parameters

SMB-Workspace-Id*string

Workspace where this operation runs. Required for user tokens and Workspace API keys.

Formatuuid
Idempotency-Key*string
Length8 <= length <= 200

Request Body

application/json
  1. body
tasks*array<>

1 to 1,000 Tasks, changed in this order.

Items1 <= items <= 1000

Response Body

Successful authorized response.

application/json
  1. response
data*
receipt*
idempotent_replay*smb_v0_operations_create_list_request.__local.properties.body.__schema16
request_id*string
curl -X PATCH 'https://example.com/v1/tasks' \  -H 'SMB-Workspace-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Idempotency-Key: stringst' \  -H 'Content-Type: application/json' \  -d '{  "tasks": [    {      "task_id": "string",      "expected_revision": 1    }  ]}'
{  "data": {    "count": 1,    "task_ids": [      "string"    ],    "revisions": [      1    ]  },  "receipt": {    "receipt_id": "64d0a161-468e-472a-b00e-a06ee9ab7de7",    "command_id": "7d510d78-7444-4252-aeac-9e473949661e",    "operation": "string",    "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9"  },  "idempotent_replay": true,  "request_id": "string"}