Cyclers
Record a cycler's open service as done
Changed onRecord service as done on a cycler.
Two paths behind one endpoint, chosen by whether the cycler is currently out of service:
- Open event (it was taken out first): that event is completed and every channel incident pointing at it is closed in one write, so the cycler cannot end up half returned to service.
- No open event: the common case of "I calibrated this, log it". A single already-completed event is recorded from the request's event_type. Nothing was taken out, so nothing needs returning, and no one has to open an event purely so it can be closed.
Either way a calibration advances last_calibrated_at — the only supported way that field moves — and optionally updates calibration_interval_days.
Addressed by cycler rather than by event id because a cycler has at most one open event: the caller already knows which cycler it serviced, and looking up the event id first would be a round-trip that proves nothing.
post/cyclers/{cycler_id}/service_events/complete
Request
- Base URLhttps://api.ionworks.com
- URLhttps://api.ionworks.com/cyclers/{cycler_id}/service_events/complete
- Authnone declared
Path parameters
cycler_idstring uuid required
Request body
object required
Response
Successful Response
Changes
- breaking
for the
pathrequest parametercycler_id, the format changed from no format touuid
- breaking