Audits

Create an audit from a template

POST
/audits

Clones the template's sections and questions onto a new audit. 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" \  -H "Content-Type: application/json" \  -d '{    "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",    "application_id": "48ac72d0-a829-4896-a067-dcb1c2b0f30c",    "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",    "name": "string"  }'
Empty
Empty
Empty
{  "message": "string"}