Edit a version with AI
Authorization
OrgApiKey AuthorizationBearer <token>
Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.
In: header
Path Parameters
template_id*Template Id
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/497f6eca-6276-4993-bfeb-53cbbbba6f08/ai-edit" \ -H "Content-Type: application/json" \ -d '{ "instruction": "string" }'{ "ops": [ {} ], "proposed_content": {}, "diff": { "changes": [ { "kind": "added", "target": "section", "id": "string", "label": "string", "detail": "string", "section_id": "string", "section_label": "string", "row_id": "string", "row_label": "string" } ] }, "warnings": [], "has_more": false, "page": 1, "content_version": 0, "content_sha": "string", "added_rows": 0, "continuation_token": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}