Forecast

Lock a scenario as the single budget baseline for variance (#1159)

Sets the scenario kind to 'budget' and is_locked=true, unlocking any previously locked budget scenario for the same forecast. The locked budget is the plan used by GET /forecast/variance.

post/companies/{companyId}/forecast/{forecastId}/scenarios/{scenarioId}/lock

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

companyId, string uuid required
forecastId, string uuid required
scenarioId, string uuid required

Headers

X-Median-App-Surface, 'qa'

Optional customer-app bundle marker for production-promoted demo-parity routes. Production customer calls omit this header. When present, qa selects the QA bundle and the server additionally requires an allowlisted test company with persisted client_status=test.

Response

The newly locked budget scenario

object required
success, boolean
data, ForecastScenario

Changes

No recorded changes to this operation across all 110 revisions of this API.