Skip to main content

Create Schedule

POST 

/api/inventory-forecasting/schedules

Create a new forecast schedule.

Authentication: Requires Bearer token.

schedule_time: HH:MM:SS format.

days_of_week: array of integers 0-6 (0=Sunday, 1=Monday, ..., 6=Saturday).

alert_channels: array of 'email' and/or 'slack'.

PO settings:

  • auto_create_po (boolean): create POs automatically from the forecast results.
  • po_status: draft, approved, or approved_sent.
  • separate_po_by_brand (boolean): split POs per brand instead of one per supplier.
  • auto_receive_po (boolean): automatically mark the created PO as received once it has been created and approved. Ignored when po_status is draft (a draft PO cannot be received).

Returns 201.

Request

Responses

Successful response