Auditmark

Apply an AI edit across templates

POST
/templates/ai-bulk-apply

Authorization

OrgApiKey
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.auditmark.io/v1/templates/ai-bulk-apply" \  -H "Content-Type: application/json" \  -d '{    "items": [      {        "family_id": "fcd2485f-01cf-42a4-b87e-419b8257112a",        "proposed_content": {}      }    ]  }'
{  "results": [    {      "family_id": "fcd2485f-01cf-42a4-b87e-419b8257112a",      "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",      "ok": true,      "error": "string"    }  ]}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}