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/api/overview/authenticating
Path parameters
model_idstringRequired
The unique identifier of the forecast model.
Header parameters
Content-Typestring · enumRequiredExample:
Content type of the uploaded payload.
application/jsonPossible values: Body
Responses
201
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
post/v1/forecasts/models/{model_id}/demand
POST /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": [
{
"demand": 1,
"date": "2026-01-01"
}
]
}No content
OpenAPI Spec
Guides
Last updated
Was this helpful?