Timeline events
Cancel timeline events
Cancels pending one-off timeline events by id (from list_timeline_events): send event_id (one) or event_ids (several).
DELETE
Each id gets its own result { event_id, ok, status }: cancelled or not_found (already run or cancelled), forbidden or error. Cancelling another user's event needs the owner or admin role on the shared device. Only one-off events; change schedule steps with the schedule tools.
Request parameters
Authorization string requiredYour API key as a bearer token: Bearer os_…. Make one on the API keys page; see Authentication.
Body application/json
serialstring requiredDevice serial number (from list_devices, e.g. "AA:BB:CC:DD:EE:FF")
event_idstring min length 1One event id from list_timeline_events
event_idsstring[] min items 1max items 200each min length 1Several event ids
Response parameters
200 OK application/json
resultsobject[] required
Errors
Every error answers { "error": { "code", "message" } }.
cancel_timeline_events