GET
/transactional-api/get-document-template-versionGet Document Template Version
Returns the content and metadata for a specific document template version.
Authorization: Bearer token (JWT). See Authentication.
Request
curl -L -X GET 'https://{tenantId}.api.england.medicus.health/transactional-api/get-document-template-version' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'
Path and query parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
versionId | query | string<uuid> | Yes |
Responses
200 Document template version.
Response fields
| Field | Type | Description |
|---|---|---|
id | string<uuid> | |
templateId | string<uuid> | |
versionNumber | string | |
status | enum | One of: draft, active, archived. |
content | string |
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"templateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"versionNumber": "1.0",
"status": "draft",
"content": "<documentTemplate><form><section><text-input name=\"signature\" /></section></form></documentTemplate>"
}
400 Invalid request.
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "invalid-field",
"description": "versionId must be a valid UUID."
}
]
}
404 Version not found.