bulk-actions
Create bulk action
Changed onCreate an asynchronous bulk action to cancel or replay runs selected by run IDs or filters.
post/api/v1/bulk-actions
Request
- Base URLhttps://api.trigger.dev
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"filter": {
"period": "24h",
"bulkAction": "bulk_1234",
"schedule": "sched_1234",
"batch": "batch_1234"
}
}Response
Bulk action accepted
Example response
{
"id": "bulk_1234"
}Changes
- breaking
removed
subschema #1subschema #2from the request bodyoneOflist - info
added
subschema #1: Cancel by filtersubschema #2: Cancel by run IDssubschema #3: Replay by filtersubschema #4: Replay by run IDsto the request bodyoneOflist
- breaking
- info
endpoint added
- info