tasks
Batch trigger a specific task
Changed onBatch trigger a specific task with up to 1,000 payloads. All items in the batch run the same task.
post/api/v1/tasks/{taskIdentifier}/batch
Request
- Base URLhttps://api.trigger.dev
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"items": [
{
"options": {
"tags": "user_123456",
"machine": "small-2x"
}
}
]
}Response
Batch triggered successfully
Example response
{
"batchId": "batch_1234"
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking