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

Train Model

Train an existing forecast model.

Train Model

post

Triggers training for the specified forecast model. The model must have demand data uploaded and be in a state that allows training (e.g. ready or created with demand data).

Training runs asynchronously — poll the model's readiness.status field to monitor progress.

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.

Responses
204

Successful Response

No content

post/v1/forecasts/models/{model_id}/train

No content

OpenAPI Spec

The OpenAPI spec for Forecasts API can be found here.

Guides

Last updated

Was this helpful?