Skip to content

Apply one change to many tasks

POST
/tasks/batch/bulk
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/tasks/batch/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "action": { "assigneeId": "example", "type": "assignee" }, "taskIds": [ "example" ] }'

Applies one action to up to 100 tasks through the same service the board and list toolbar use: assignee (one person or null), priority, due-date, complete, archive, move to another project, labels to add and remove, or a custom field value. Each action needs the permission its single-task version needs: tasks.assign for assignee, tasks.delete for archive, tasks.manage for the rest. The permission is checked once, before any task is touched, so a refusal is a 403 and changes nothing. After that each task is attempted on its own and the response is 200 with succeeded (task ids) and failed (id, error); a task outside the caller’s reach reports not found. There is no permanent delete: archive keeps the tasks recoverable, as DELETE /tasks/{id} does. move takes the optional targetStatusId of the target workflow, with the status mapping of the single move.

Media typeapplication/json
object
action
required
One of:

Give every task one assignee, or null to leave them without one. Needs tasks.assign.

object
assigneeId
required
string | null
type
required
string
Allowed value: assignee
taskIds
required

1 to 100 task ids.

Array<string>
>= 1 items <= 100 items

The outcome of each task.

Media typeapplication/json
object
data
required

What a bulk action did to each task. The action is not atomic once permissions pass.

object
failed
required
Array<object>
object
error
required
string
id
required
string
succeeded
required

Ids of the tasks the action changed.

Array<string>

Example generated

{
"data": {
"failed": [
{
"error": "example",
"id": "example"
}
],
"succeeded": [
"example"
]
}
}

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.