Skip to content

Update tasks in a batch

PATCH
/tasks/batch
Code sample: Shell / cURL
curl --request PATCH \
--url https://example.com/api/v1/tasks/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "updates": [ { "assigneeId": "example", "completedAt": "2026-04-15T12:00:00Z", "createdAt": "2026-04-15T12:00:00Z", "description": "example", "dueAt": "2026-04-15T12:00:00Z", "dueDate": "example", "id": "example", "isArchived": true, "onBoard": true, "overrideDependencies": true, "parentId": "example", "priority": "NONE", "priorityOptionId": "example", "recurrence": { "endDate": "2026-04-15", "frequency": "DAILY", "interval": 1, "monthDay": 1, "weekdays": [ 1 ] }, "startAt": "2026-04-15T12:00:00Z", "startDate": "example", "status": "example", "subtaskPosition": 1, "subtasksOnBoard": true, "timeEstimate": 1, "title": "example" } ] }'

Applies up to 50 updates, each { id, ...fields } with the fields of PATCH /tasks/{id}, one by one through the same services: the same reach checks (a task or parent outside the caller’s scope reports not found), completion and dependency rules, and permissions. An update’s status moves the task through the single status path and its result carries what changed (status, who holds the task, why, and the subtasks carried along). The batch is not atomic: the response is 200 whenever the batch was processed, with succeeded (index, id, statusChange) and failed (index, id, error) per update, where index is its position in updates. Every update needs tasks.manage, as do createdAt (also tasks.import) and overrideDependencies (projects.manage); a status and the other fields of one update are written in one transaction.

Media typeapplication/json
object
updates
required

1 to 50 updates, applied in order.

Array<object>
>= 1 items <= 50 items
object
assigneeId

Member to make the task’s only assignee, or null to leave it unassigned.

Any of:
string
>= 1 characters
completedAt

Completes the task at this instant, a past one included so a migrated task keeps its real close date, or re-opens it with null. Completing moves it to its workflow’s first completed status, re-opening to the first unstarted one; an unfinished blocking dependency refuses it.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
createdAt

Corrects the original creation instant, never into the future; the same instant is a no-op. Requires tasks.manage and tasks.import; the original creation audit is kept and the change is recorded with the actor.

string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
description

Task description as Markdown, or null to clear it. GitHub-Flavored Markdown, converted to sanitized HTML for storage. Survives the round trip: headings (the web editor edits h1-h2 and demotes deeper levels to paragraphs), bold, italic, strikethrough, underline as , inline code, fenced code blocks with a language, links, bullet, numbered and nested lists, task lists, blockquotes, horizontal rules, hard line breaks, tables with header rows (merged cells and complex tables use sanitized inline HTML), images served from /api/v1/files/, member mentions written as @Name, and a Loom, Cap (cap.so or the organization’s own Cap server), Figma, YouTube, Google Docs or GitHub pull-request link standing alone in its paragraph, which becomes an embed. Inline HTML passes through the same sanitizer as the editor. Lost: external image URLs (dropped by the sanitizer), link titles, text alignment.

string | null
dueAt

Due instant with a UTC offset; null removes the time and keeps dueDate, and a dueDate edit without dueAt clears it. When both are sent their workspace days must agree.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
dueDate
Any of:

Calendar day as YYYY-MM-DD, stored at UTC midnight. A full ISO timestamp keeps its UTC day.

string
id
required

The task to update.

string
>= 1 characters
isArchived
boolean
onBoard

Subtasks only: true shows the subtask as its own card on its project’s board, in the column of its own status; false shows it only inside its parent. Everyone who opens the board sees the same cards.

boolean
overrideDependencies

Bypass unfinished dependencies on completion. Requires projects.manage; every use is audited.

boolean
parentId

New reachable parent task (it may itself be a subtask), or null to promote to root; omitted, the parent stays. The task keeps its id and its subtasks. Re-parenting under a task of another project moves the task and its subtasks there, statuses mapped onto its workflow; promoting to root keeps the project.

Any of:
string
>= 1 characters
priority
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
priorityOptionId
string
>= 1 characters
recurrence

New repetition rule, or null to stop repeating. PERIODIC repeats interval days after completion; the other frequencies follow the scheduled calendar date.

Any of:
object
endDate

Last calendar day of the series, YYYY-MM-DD.

string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
frequency
required
string
Allowed values: DAILY WEEKLY MONTHLY YEARLY PERIODIC
interval
integer
default: 1 >= 1 <= 366
monthDay

Day a MONTHLY rule repeats on. Defaults to the due date’s day, clamped per month.

integer
>= 1 <= 31
weekdays

Days a WEEKLY rule repeats on, 0 = Sunday. Defaults to the due date’s weekday.

Array<integer>
>= 1 items <= 7 items
startAt

Start instant with a UTC offset; null removes the time and keeps startDate, and a startDate edit without startAt clears it. When both are sent their workspace days must agree.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
startDate
Any of:

Calendar day as YYYY-MM-DD, stored at UTC midnight. A full ISO timestamp keeps its UTC day.

string
status

Status name within the task’s project workflow, matched without case, or its id. Moves the task through the single status path: completion by category, open subtasks on completion, and the role a status names. Requires tasks.manage; with other fields, both are written in one transaction.

string
>= 1 characters
subtaskPosition

Zero-based sibling position; the task must have a parent. Omitted, the order stays, or the task is appended when its parent changes.

integer
<= 2147483647
subtasksOnBoard

True shows every direct subtask of the task on the board, false hides them all; a subtask created later follows this setting. A subtask’s own onBoard can still be changed afterwards.

boolean
timeEstimate

New time estimate in whole seconds (5400 = 1h 30m), or null to clear it.

Any of:
integer
> 0 <= 9007199254740991
title
string
>= 1 characters <= 500 characters
key
additional properties

The outcome of each update.

Media typeapplication/json
object
data
required

What each update of a batch did. The batch is not atomic.

object
failed
required
Array<object>
object
error
required
string
id
required
string
index
required
integer
>= -9007199254740991 <= 9007199254740991
succeeded
required
Array<object>
object
id
required
string
index
required

Position of the update in the request.

integer
>= -9007199254740991 <= 9007199254740991
statusChange
required

What the status change did when the update carried a status, else null.

Any of:
object
assigneeChange
required
string
Allowed values: none explicit
assigneeId
required
string | null
cascadedSubtaskIds
required
Array<string>
changed
required
boolean
previousStatus
required
Any of:
object
id
required
string
name
required
string
reason
required
string
status
required
object
id
required
string
name
required
string

Example

{
"data": {
"succeeded": [
{
"statusChange": {
"assigneeChange": "none"
}
}
]
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.