Skip to main content

Resolve Demand Anomaly

POST 

/api/inventory-forecasting/anomalies/:id/resolve

Record a decision for a single demand anomaly so future forecasts treat the point correctly.

Authentication: Requires Bearer token.

How each status affects a subsequent build (only when that build sets exclude_detected_anomalies true):

  • excluded: drop the day from the history before the baseline is computed. Use for a true one-off that should not count.
  • smoothed: replace the day with its expected (model) value, keeping the day but removing the spike/gap. Use when the day should contribute a normal amount.
  • kept_tagged: keep the day as-is, optionally attributed to a promotion via promo_window_id. Excluded and smoothed days are the ones anomaly cleansing acts on; kept_tagged days stay in the baseline. detected resets the point to unresolved.

Path parameter: id - the anomaly to resolve.

Body fields:

  • status (required): excluded, smoothed, kept_tagged, or detected.
  • promo_window_id (optional): link the point to a promo window when kept_tagged, associating the spike with a known promotion.

Request

Responses

OK

Response Headers
    Content-Type