Upload Demand Data
Upload historical demand data for 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/authentication
Path parameters
model_idstringRequired
Header parameters
Content-Typestring · enumRequiredExample:
Content type of the uploaded payload.
application/jsonPossible values: Body
Responses
201
Successful Response
application/json
422
Validation Error
application/json
post
/v1/forecasts/models/{model_id}/demandPOST /v1/forecasts/models/{model_id}/demand HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"demand": [
{
"date": "2025-11-29",
"demand": 1
}
]
}No content
OpenAPI Spec
The OpenAPI spec for Forecasts API can be found here.
Guides
Last updated
Was this helpful?