Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Start batch on a run

Starts a batch: a parent Run that fans out one child Run per item, each with a stable index and count.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Starts a batch: a parent Run that fans out one child Run per item, each with a stable index and count.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows/workflow/runs:startBatch
  • Scope workflows:run
  • Effect write — a successful call changes state.
  • Collection runs

#Request

FieldTypeWhat it is
parentstringThe parent the method acts in. Required.
inputsstruct[]The inputs, one child Run each; at most 10 000. Required.
max_concurrencyint32At most this many children run at once; 0 is the Workflow's limit.

#Response

FieldTypeWhat it is
runRunThe parent batch Run.

#Run

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/workflows/{workflow}/runs/{run}.
uidstringrun_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
workflow_generationint64The Workflow generation the Run pinned at start. Output only.
inputstructThe Run input, at most 256 KiB of JSON.
start_delaydurationDelay the first invocation by this much.
stateRunStateThe Run's lifecycle state. Output only. One of running, succeeded, failed, cancelled, timed_out.
schedule_fireScheduleFireRefSet when a Schedule fire started the Run. Output only.
batch_positionBatchPositionSet on a child of a batch Run. Output only.
start_timetimestampWhen the Run started. Output only.
end_timetimestampWhen the Run closed. Output only.
attempt_countint32Attempts made so far, across every step. Output only.
outputstructThe handler's complete output, once succeeded. Output only.
errorRunErrorThe failure, once failed or timed_out. Output only.
schedule_timetimestampWhen the first invocation is due: set it directly, or through start_delay; at most 365 days ahead. A Run cancelled before then closes cancelled with no invocation.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#ScheduleFireRef

FieldTypeWhat it is
schedulestringThe Schedule. Output only.
intended_timetimestampThe instant the fire was due. Output only.

#BatchPosition

FieldTypeWhat it is
parent_runstringThe parent batch Run. Output only.
indexint32Zero-based index of this child. Output only.
total_countint32Number of children in the batch. Output only.

#RunError

FieldTypeWhat it is
codestringA machine-readable code, for example handler_rejected or card_declined. Output only.
messagestringA customer-safe message. Output only.
retryableboolWhether the handler marked the failure retryable. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows/workflow/runs:startBatch" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inputs":[{}]}'