Train model
Train an existing forecast model.
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.
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
The unique identifier of the forecast model.
Successful Response
No content
Bad Request
Unauthorized
Payment Required
Forbidden
Not Found
POST /v1/forecasts/models/{model_id}/train HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
OpenAPI spec
Read the Forecasts API OpenAPI spec.
Guides
These guides cover the Forecasts API:
Last updated
Was this helpful?