Create batch generation
Triggers an async batch generation job for the given time range. Poll GET /async_tasks/{task_id} with the response’s id.
When the ledger’s model partitions by asset (asset or tracking_id_and_asset), the request must include a non-empty data_point_ids array — auto-discovery is not supported because the asset partition is derived by walking each data point’s event → asset, and silently auto-discovered inputs miss cross-ledger sources. Omitting data_point_ids (or passing []) for an asset-partitioned model returns 422 Unprocessable Content. Requires the write:batch token scope.
Authorizations
Path Parameters
The ledger's friendly ID (e.g. led_aBcD1234eFgH5678).
Body
Start of the time range. A timestamp without an offset is read as UTC.
End of the time range. Must be after start_time.
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.
Optional batch amount overrides. An unknown batch_id returns 404.
The friendly IDs of data point types to skip (e.g. dpt_aBcD1234eFgH5678). Optional. Unknown IDs return 422.
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.
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.