Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Path Parameters

ledger_id
string
required

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

batch_id
string
required

The batch's friendly ID (e.g. ba_aBcD1234eFgH5678).

Body

application/json
data_point_ids
string[]

Direct (non-calculated) data point friendly IDs to attach as the batch's inputs; calculated data points are ignored. Replaces the current set. Unknown IDs return 422.

batch_amounts
object[]

Upstream batch allocations. Replaces the current set. 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). Each skipped type is recorded as a zero-value skipped_input placeholder so the batch stays auditable. Replaces the current set. Unknown or out-of-config IDs return 422.

Response

Updated batch detail, in the shape GET /batches/{batch_id} returns. The example is abridged.

A batch with its inputs, allocations and rule alerts, as GET /batches/{batch_id} returns it.

id
string
Example:

"ba_aBcD1234eFgH5678"

tracking_id
string | null
start_time
string<date-time>
end_time
string<date-time>
state
enum<string> | null

State of the underlying model run; null when the run no longer exists.

Available options:
incomplete,
staged,
processing,
updated,
error,
null
error_message
string | null

Error message from the underlying model run when state is error; null otherwise.

ui_url
string<uri> | null

Link that opens this batch in the Mangrove app, built from the project, ledger and batch friendly IDs. Null when the batch has no ledger.

Example:

"https://app.gomangrove.com/nexus/prj_AbCd1234567890Ef/ledger/led_aBcD1234eFgH5678/batch/ba_aBcD1234eFgH5678"

created_at
string<date-time>
updated_at
string<date-time>
primary_output
object | null
ledger_balance
number | null
allocations
object[]
model_run
object | null
feedstocks
object[]

Feedstocks this batch's run drew on — either tagged directly on one of its inputs, or inherited via lineage from an upstream commingled-tank draw (a calculated input that itself drew from a feedstock further upstream). De-duplicated and sorted by name.

asset
object | null

Asset associated with the batch when the model partitions by asset (asset or tracking_id_and_asset). null for batches whose model uses any other partition type.

input_data
object[] | null

Complete input collection when it has at most 20,000 rows; otherwise null. An empty collection is []. Retrieve omitted inputs through GET /batches/{batch_id}/inputs.

report_allocations
object[]
downstream_batch_allocations
object[]
has_rule_alerts
boolean

True when the batch has an active (un-dismissed) failing rule result.

rule_alerts
object[] | null

Complete failing-rule collection when it has at most 20,000 rows; otherwise null. An empty collection is []. Retrieve omitted alerts through GET /batches/{batch_id}/rule_alerts.