Skip to main content
POST
Create batch generation

Authorizations

Authorization
string
header
required

Path Parameters

ledger_id
string
required

The ledger's friendly ID (e.g. led_aBcD1234eFgH5678).

Body

application/json
start_time
string<date-time>
required

Start of the time range. A timestamp without an offset is read as UTC.

end_time
string<date-time>
required

End of the time range. Must be after start_time.

data_point_ids
string[]

Array of data point friendly IDs to include. Optional unless the ledger's model partitions by asset: when the key is omitted, inputs are auto-discovered from the time range. Sending the key at all (even as []) turns auto-discovery off. Required and non-empty when the model partitions by asset (asset or tracking_id_and_asset); without it the request returns 422.

batch_amounts
object[]

Optional batch amount overrides. An unknown batch_id returns 404.

skipped_data_point_type_ids
string[]

The friendly IDs of data point types to skip (e.g. dpt_aBcD1234eFgH5678). Optional. Unknown IDs return 422.

generate_concurrent_ledgers
boolean
default:false

Also generate the ledger's concurrent (sibling) ledgers — those that share a non-ledgered upstream model with this ledger — in the same run. Defaults to false, so only the requested ledger generates unless you opt in.

model_overrides
object

Runs a different version of a model in the ledger's calculation. Each key is the friendly ID of a model the calculation uses, and its value is the friendly ID of the model in the same project to run in its place. An unknown or non-string ID returns 400.

Example:

Response

Batch generation is queued; poll the returned task.

A background task the request queued. Poll it at GET /async_tasks/{task_id}.

type
string
state
string
progress
integer
created_at
string<date-time>
id
integer

The task's ID. Poll it at GET /async_tasks/{task_id}.