Auditmark

Draft an AI edit across templates

POST
/templates/ai-bulk-edit

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-edit" \  -H "Content-Type: application/json" \  -d '{    "family_ids": [      "f446255b-fafc-4a8d-8b5a-c2f692924afb"    ],    "instruction": "string"  }'
{  "results": [    {      "family_id": "fcd2485f-01cf-42a4-b87e-419b8257112a",      "name": "string",      "outcome": "changed",      "n_changes": 0,      "diff": {        "changes": [          {            "kind": "added",            "target": "section",            "id": "string",            "label": "string",            "detail": "string",            "section_id": "string",            "section_label": "string",            "row_id": "string",            "row_label": "string"          }        ]      },      "target_template_id": "9305610b-4da1-462e-9bb6-45ffa24522b5",      "proposed_content": {},      "error": "string"    }  ],  "cap": 25}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}