POST
/
public
/
v1
/
toptimize
/
forecasting
/
inventory
curl --request POST \
  --url https://api.topsort.com/public/v1/toptimize/forecasting/inventory \
  --header 'Content-Type: application/json' \
  --data '{
  "inventory": [
    {
      "inventoryType": "category",
      "inventoryValue": "<string>"
    }
  ],
  "timeWindow": 7
}'
[
  {
    "dailyForecasts": [
      {
        "forecastDate": "2023-12-25",
        "metrics": [
          {
            "metricName": "<string>",
            "values": {
              "forecastIntervalMax": 123,
              "forecastIntervalMin": 123,
              "forecastValue": 123
            }
          }
        ]
      }
    ],
    "inventoryType": "category",
    "inventoryValue": "<string>"
  }
]

Body

application/json

Request model for batch inventory forecasts.

This maps to BatchTriggerForecastRequest in the internal models.

Response

200
application/json

Successful Response

The response is of type object[].