Inspections
GET /inspections?machine_id={id}&failed=1
POST /inspections
GET /inspections/{id}failed=1: only passed=false.
POST — required machine_id, passed (boolean). Optional: inspector, notes, inspected_at, next_due_at, signature, checklist (array), blocked_machine. A failed inspection (passed: false) together with blocked_machine sets the machine to out_of_service. Response 201.
curl -X POST https://app.gymmaintain.com/api/v1/inspections \
-H "Authorization: Bearer gm_..." -H "Content-Type: application/json" \
-d '{"machine_id":"<uuid>","passed":false,"inspector":"Kim","blocked_machine":true,"checklist":[{"item":"cable","ok":false}]}'