Start inspection
documentedCreate a new inspection (audit) using SafetyCulture’s API, enabling automation to start an inspection from a template.
POST /auditsInspectionsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.safetyculture.io/audits" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"template_id": "{{$template_id}}", "audit_title": "{{$audit_title}}", "audit_data": {"<question_item_id_1>": "{{$answer_q1}}", "<question_item_id_2>": "{{$answer_q2}}"}}'