Upload Demand Data

Upload historical demand data for an existing forecast model.

Upload Demand Data

post
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 · enumRequired

Content type of the uploaded payload.

Example: application/jsonPossible values:
Body
Responses
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": [
    {
      "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?