v1

latestOpenAPI 3.1.02026-07-2342137210.8 KB
Demand Data

Create Model Demand

Uploads historical demand data for a forecast model. The model must exist and belong to the authenticated organization.

You can use any of the following content types:

  • application/json: A JSON object with a demand array of {date, demand} objects.
  • text/csv: A CSV file with lowercase headers date,demand and one row per data point.
  • application/x-ndjson: Newline-delimited JSON where each line is a {date, demand} object.

The date field should be in YYYY-MM-DD format and demand must be a non-negative number.

post/v1/forecasts/models/{model_id}/demand

Path parameters

model_idstring required

The unique identifier of the forecast model.

Headers

Content-Type'text/csv' | 'application/x-ndjson' | 'application/json' required

Content type of the uploaded payload.

Request body

Response

Successful Response