Create a batch job
/lang2fhir/batchOpens an empty job; upload items, then finalize it to start processing.
request_id makes creation idempotent: a retry returns the original
job. A token is released when its job is canceled or fails before
finalization; otherwise it continues to resolve to that job.
Body parameters
Optional client idempotency token (at most 256 UTF-8 bytes). A retried create with the same token returns the original job instead of opening a second one.
Batch job created (or an idempotent replay of an existing job)
Response fields
Server-assigned job identifier.
The idempotency token supplied at create, if any.
Job status. completed means every item has finished — some may have
failed, so check counts for the split. failed is a whole-job
failure (the job could not run at all), distinct from individual item
failures, which never fail the job. canceled is a caller-requested
cancellation via POST /lang2fhir/batch/{job_id}/cancel; like the
other terminal states it keeps any results already produced readable
for the retention window.
pendingprocessingcompletedfailedcanceledWhether the job's item set has been sealed.
The sealed item count. It is 0 until the job is finalized, so an upload response always reports 0; poll the job after finalize for the real count.
A whole-job failure. Present only on a failed job.
When the job finished. Absent until then.
When the job and its stored inputs and results are deleted. Set 7
days out, with the clock restarting when the job reaches completed,
failed, or canceled. At expiry the job's request_id is freed for reuse.