Reading schedules
isPM: true and plannedMaintenanceScheduleId, so you can list a schedule’s history from the work order side:
Skipping a run
PATCH /v1/buyer/pm/planned_maintenance_schedules/skip_schedule advances a schedule past its next scheduled run (for example, when a site is closed for renovation). The schedule id is the required field:
Driving PM from an external scheduler
If your own system decides when PM work orders get cut, close the loop by recording each run withPOST /v1/buyer/pm/scheduler_run_logs:
scheduleId, status, lastRunAt, and lastRunDueAt are required; woId links the work order the run created (create it first via the work orders endpoint, with isPM: true and plannedMaintenanceScheduleId set), and log holds free-form diagnostics.
The full external-scheduler loop:
- Read schedules and their cadence from the API.
- When a run comes due, create the PM work order.
- Record the run with
scheduler_run_logs, linking thewoId. - If a run must be skipped instead, call
skip_scheduleso the next due date advances.