Audits

Create a custom audit (no template)

POST
/audits/custom

Creates an empty audit with no template-derived sections. Requires the Auditor role.

Authorization

SupabaseBearer
AuthorizationBearer <token>

Supabase user access token (Authorization: Bearer JWT)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/audits/custom" \  -H "Content-Type: application/json" \  -d '{    "application_id": "48ac72d0-a829-4896-a067-dcb1c2b0f30c",    "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",    "name": "string"  }'
Empty
Empty
Empty
{  "message": "string"}