Replace Model
Replace an existing forecast model.
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 · nullableOptionalPossible values:
Number of days into the future to forecast.
labelstring[] · min: 1 · nullableOptional
Set of labels you can use to better identify or group your forecast models.
algoconst: phq-xgboostOptionalDefault:
Algorithm to use for forecasting.
phq-xgboostResponses
204
Successful Response
No content
400
Bad Request
application/json
401
Unauthorized
application/json
402
Payment Required
application/json
403
Forbidden
application/json
404
Not Found
application/json
put/v1/forecasts/models/{model_id}
No content
OpenAPI Spec
Guides
Last updated
Was this helpful?