Skip to main content
Return expected and maximum costs for the current graph and attached dataset. Optional itemLimit and itemFilter override the Start node settings for this estimate. No run is started.

Signature

Method signature on client.pipelines:

Parameters

string
required
Pipeline ID with prefix pl..
number
Maximum number of items to price. Defaults to the Start node’s itemLimit, or all matching items if no limit is set.
DatasetItemFilter
Filter selecting items to price. Defaults to the Start node’s itemFilter.

Returns

Promise<PipelineCostEstimate> A forecast of pipeline cost for the current graph. Expected and maximum are forecasts; billing is pay-as-you-go.
object
required
Dataset and item count used for the forecast.
object
required
Forecast costs for all priced nodes.
string
required
Explanation of the estimate assumptions and billing limitations.
object[]
required
Per-node cost forecasts, including nodes that cannot be priced.
PipelineGraphVersion
required
The snapshot version expected to still be active. A stale version is rejected with HTTP 409.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: POST /pipelines/{pipelineId}/cost-estimate.