Skip to Content

Public M2M API — safety

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/safety

Exported methods: GET, POST

GET

  • Resource scopes: safety:read
  • Query parameters: limit, page, resource, search, siteId, status
  • Shared pagination: Yes
  • Response keys observed across outcomes: data, pagination, resource, tenantId

POST

  • Resource scopes: safety:write
  • Explicit response statuses: 201, 400, 409, 422
  • Explicit error codes: invalid_request, onboarding_incomplete, safety_operation_failed
  • Response keys observed across outcomes: data

Send a JSON object. Observed branch requirements: When resource=device, provide siteId, code, category; When resource=check, provide siteId, scheduledDate; When resource=non-conformity, provide siteId, title; When default site create, provide name. Other fields and downstream service validation depend on the branch; verify the result.

JSON properties observed: action, category, checkType, code, description, deviceId, id, location, name, nextCheckDate, notes, resource, scheduledDate, severity, siteId, status, technicianName, title.

These names are read by the handler; they are not a complete schema or a promise that every property applies to every branch. Check the validation messages and operation result.