Skip to main content

Run Schedule Now

POST 

/api/inventory-forecasting/schedules/:schedule/run

Manually trigger a forecast schedule. The run is queued and executes in the background, because a large supplier forecast can take longer than a single HTTP request allows.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Returns 202 Accepted with a tracked_job_log_id. The finished run (status, results_summary, linked purchase orders) appears in the schedule's run history — GET /api/inventory-forecasting/schedules/{schedule}/runs.

Authentication: Requires Bearer token.

Only one run of a schedule can be in progress at a time, because two runs at once could create a second set of purchase orders. While a run of the schedule is still in progress, the request is refused with 409 Conflict and nothing is queued; wait for that run to finish (check the schedule's run history) and try again.

Returns 404 if the schedule does not exist.

Request​

Responses​

Accepted

Response Headers
    Content-Type