Update Tasks
PATCH
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.
header
AuthorizationBearer <token>A signed-in SMB user's access token. Workspace-scoped operations also require SMB-Workspace-Id.
SMB-Workspace-Id*stringWorkspace where this operation runs. Required for user tokens and Workspace API keys.
Format
uuidIdempotency-Key*stringLength
8 <= length <= 200application/json- body
tasks*array<>1 to 1,000 Tasks, changed in this order.
Items
1 <= items <= 1000Successful authorized response.
application/json- response
data*receipt*idempotent_replay*smb_v0_operations_create_list_request.__local.properties.body.__schema16request_id*stringcurl -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"}