Auditmark

Delete inspection

DELETE/inspections/{inspection_id}

Soft-delete a never-started inspection (status='scheduled' only). Started/finished inspections must be archived instead. RLS scopes the row to the caller's org.

Authorization

OrgApiKey
AuthorizationBearer <token>

Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.

In: header

Path Parameters

inspection_id*Inspection Id

Response Body

application/json

application/json

curl -X DELETE "https://api.auditmark.io/v1/inspections/497f6eca-6276-4993-bfeb-53cbbbba6f08"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}