Auditmark

Replace all participants

PUT
/inspections/{inspection_id}/participants

Replace the whole inspector roster in one transaction (used by 'Manage people').

Diffs the desired roster against the current participants and applies adds / scope updates / removals atomically (the request runs in one rls_session transaction, so a failure rolls the whole change back). Every desired user must be an active inspector-role member of the caller's org (validated before any write). Locked once the inspection is completed/pending/archived (same guard as the per-participant endpoints).

section_ids: null = whole form; a list = scoped to those sections (persisted verbatim).

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://api.auditmark.io/v1/inspections/497f6eca-6276-4993-bfeb-53cbbbba6f08/participants" \  -H "Content-Type: application/json" \  -d '{}'
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "inspector_user_id": "d709348b-5722-466c-9dae-77e30656ece2",    "section_ids": [      "eb33a987-41aa-47a5-bf10-a6f93da43e0e"    ],    "status": "string"  }]
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}