Resolve Link template to JSON template id
Maps a Link form template to a Vetnio JSON template so the clinical note is generated with one value per Link field. Vetnio reads the template's writable fields, derives a signature from their ordered titles, and returns the workspace's JSON template with that signature, creating it on first use (creation runs an AI step that writes per-field instructions, so the first call is slower). When consultationId is given, the JSON template is also set as that consultation's clinical-note template. Idempotent: repeated calls return the same id with created: false. Returns 400 BAD_REQUEST when the template has no writable fields.
Request
- Base URLhttps://vetnio.com/api/v2
- URLhttps://vetnio.com/api/v2/workspaces/{workspaceId}/link/templates/{linkTemplateId}/resolve
- AuthHTTP bearer
Path parameters
Identifier of the clinic (workspace), as returned by GET /workspaces. The key's user must be a member of the clinic, or an admin of the organization it belongs to.
Link journal form template id, as returned in id by the template list endpoint.
Request body
Example request
{
"consultationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}Response
Resolved jsonTemplateId, a created flag, and the deterministic ordered keys.
Example response
{
"jsonTemplateId": "0f6c2d7e-3b1a-4c55-9f0e-2a8b7c6d5e4f",
"keys": [
"anamnes",
"status",
"bedoemning"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.