Update an outbound task
update_taskChange an editable outbound task's rules - name, recipients, calling window, maxAttempts, retryPolicy, retryMaxAgeDays, retryWindows, expiresAt, maxDurationSecs, or budgetHal. It fails with task_not_editable while the task is running or completed, or in needs_attention without a way to recover, so pause a running task first. After the first dial attempt recipients can no longer be replaced (items_immutable) and a different retryPolicy or dispatchOrder is rejected; the other fields stay editable. expectedRevision (revision below) must equal the task's current revision or this fails with revision_conflict - reload with get_task first. Send only the fields you want to change; recipients, when sent, REPLACES the whole list, it does not merge. An audited skip (resolve_task_item with reason customer_purchased or unsubscribed) also makes recipients immutable, including in a draft. Enable the Lorela Enterprise retry schedule before any dispatch attempt. The same policy may be sent again later; omission preserves the current policy. Four attempts and the retry horizon (retryMaxAgeDays, default 5, ending N × 24 hours from the first counted attempt) are hard limits; manual resolve retry after an actual attempt is rejected. Unlike retryPolicy, retryMaxAgeDays may be changed in any editable state, also after attempts have started: raising it returns contacts that were skipped only for the horizon (reviewReason retry_age_expired) back to failed (waiting for their next attempt) with a new nextAttemptAt when the next slot of the schedule falls inside the new horizon and before expiresAt, lowering it reopens nothing. Only a PATCH that raises the horizon reopens contacts, so send retryMaxAgeDays together with a prolonged expiresAt in one call. Human contact and non-retryable results stop further calls. Does not bypass callingWindow, expiry, DNC, budget or call limits. The schedule is described by create_task and /en/docs/tasks. Same data as PATCH /v1/tasks/{id} (response schema in /openapi.json).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"revision": "<revision>"
},
"name": "update_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the task to update, from list_tasks or get_task. Looks like task_9f3a2b7c4d1e. | |
| name | No | New name for the task, 1 to 120 characters. Omit to leave the current name unchanged. | |
| revision | Yes | Revision of the task as returned by get_task. The update is rejected with revision_conflict when it changed since - reload with get_task. | |
| budgetHal | No | New total budget in hellers (1/100 CZK); rejected when it would fall below what is already spent plus reserved. Omit to leave unchanged. | |
| expiresAt | No | Campaign deadline as positive safe-integer Unix milliseconds. At or after it, no new call may start, including the first. A call in progress finishes normally. Omit to leave unchanged. | |
| recipients | No | Replacement recipient list, 1 to 1000 entries, sent in full. It replaces the existing list, and the complete task JSON must stay under 2 MB. Omit to leave recipients unchanged. | |
| maxAttempts | No | New maximum automatic dials including the first: 1-3 without retryPolicy, 1-4 with lorela_enterprise in this request or already stored. Omit to leave unchanged, even when enabling a policy. | |
| retryPolicy | No | Enable lorela_enterprise before any dispatch attempt. Resending the same policy is allowed later; omission preserves it. Its four-attempt limit and retry horizon apply; manual retry is rejected. See the tool description for the full schedule. | |
| retryWindows | No | New windows of the 3rd and 4th attempt of lorela_enterprise: peak (08:00-09:00 and 17:00-19:00) or wide (08:00-13:00 and 13:00-20:00). Needs the policy. A change recomputes waiting contacts. Omit to leave unchanged. | |
| callingWindow | No | Replacement calling window. Omit to leave the current window unchanged. | |
| maxDurationSecs | No | New maximum call duration per attempt in seconds, 30 to 300. Omit to leave unchanged. | |
| retryMaxAgeDays | No | New retry horizon of lorela_enterprise: 1-30 days, ending N × 24 hours from the first counted attempt of each recipient; default 5. Needs the policy in this call or already stored. Raising it reopens contacts skipped only for the horizon; lowering it reopens nothing. |