For the complete documentation index, see llms.txt. This page is also available as Markdown.

Replace Model

Replace an existing forecast model.

Replace Model

put

Replaces the full configuration of an existing forecast model. This is a full replacement — all mutable fields should be provided. Changes to location, demand_type, forecast_window, algo, or generate_baseline are blocked while the model is in preparing, training, or forecasting status. Changing any of those fields sets the model to stale status, requiring re-training to take effect.

Authorizations
AuthorizationstringRequired

Enter your PredictHQ API key. The Bearer prefix is added automatically.

When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating

Path parameters
model_idstringRequired

The unique identifier of the forecast model.

Body
namestring · min: 1Required

Name for the forecast model.

external_idstring · min: 1 · nullableOptional

User-provided external identifier for cross-referencing with other systems.

forecast_windowstring · enum · nullableOptional

Number of days into the future to forecast.

Possible values:
labelstring[] · min: 1 · nullableOptional

Set of labels you can use to better identify or group your forecast models.

algoconst: phq-xgboostOptional

Algorithm to use for forecasting.

Default: phq-xgboost
Responses
204

Successful Response

No content

put/v1/forecasts/models/{model_id}

No content

OpenAPI Spec

The OpenAPI spec for Forecasts API can be found here.

Guides

Last updated

Was this helpful?