Audits
Add a question to an audit section
Supports YES_NO, FREE_TEXT, and MULTIPLE_CHOICE question types. Every question may optionally require an evidence attachment via evidence_required. Requires the Auditor role.
Authorization
SupabaseBearer AuthorizationBearer <token>
Supabase user access token (Authorization: Bearer JWT)
In: header
Path Parameters
sectionId*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/audits/sections/497f6eca-6276-4993-bfeb-53cbbbba6f08/questions" \ -H "Content-Type: application/json" \ -d '{ "question_text": "string", "question_type": "YES_NO" }'Empty
Empty
Empty
{ "message": "string"}