Skip to main content

post-forecast-run

POST 

/v1/projects/:projectId/forecasts/:forecastId/run

Starts an asynchronous forecast run for the specified forecast. Always returns 202 Accepted immediately with a jobId that can be polled via GET .../run/{jobId}. The server resolves the orchestrator (autoFullForecast or customStreamsForecast) automatically from the forecast's type field — callers do not choose. Mode A (defaults): Send an empty body {}. The server uses ComboCurve's built-in defaults for the forecast type. Mode B (saved configuration): Send { "configurationId": "..." }. The server loads the saved forecast configuration, validates that its forecastType matches the target forecast's type, and runs it verbatim. Company-enforced forecast settings are applied server-side in both modes, matching the behaviour of the client UI.

Request​

Responses​

Accepted. The forecast run has been queued. Poll GET .../run/{jobId} for status.