Skip to main content
POST
/
v1
/
jobs
/
{jobID}
/
trigger
/
bulk
Bulk trigger a job
curl --request POST \
  --url https://api.strait.dev/v1/jobs/{jobID}/trigger/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "concurrency_key": "<string>",
      "idempotency_key": "<string>",
      "payload": "<unknown>",
      "priority": 123,
      "scheduled_at": "2023-11-07T05:31:56Z",
      "tags": {},
      "ttl_secs": 123
    }
  ]
}
'
{
  "batch_id": "<string>",
  "created": 123,
  "results": [
    {
      "id": "<string>",
      "idempotency_hit": true,
      "run_token": "<string>",
      "status": "<string>"
    }
  ],
  "total": 123,
  "$schema": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.strait.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

jobID
string
required

Body

application/json
items
object[] | null
required

Response

OK

batch_id
string
required
created
integer<int64>
required
results
object[] | null
required
total
integer<int64>
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://api.strait.dev/schemas/BulkTriggerResponse.json"