Create batch
Phase 1 of 2-phase batch API. Creates a batch record and optionally blocks the parent run for batchTriggerAndWait. After creating a batch, stream items via POST /api/v3/batches//items.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Expected number of items in the batch. Must be a positive integer, up to the server's maximum batch size (1,000 by default; self-hosted instances can configure it). Requests above the maximum return a 400.
x >= 1Distinct task identifiers of the items in the batch. Used to authorize tokens scoped to specific tasks. If omitted, only credentials with broad task access are accepted.
1Parent run ID (friendly ID) for batchTriggerAndWait.
Whether to resume parent on completion. Set to true for batchTriggerAndWait.
Idempotency key for the batch. If provided and a batch with this key already exists, the existing batch will be returned.
Response
Batch successfully created

