Skip to main content
GET/transactional-api/get-document-template-version

Get 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

NameInTypeRequiredDescription
versionIdquerystring<uuid>Yes

Responses

200 Document template version.

Response fields

FieldTypeDescription
idstring<uuid>
templateIdstring<uuid>
versionNumberstring
statusenumOne of: draft, active, archived.
contentstring
{
"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

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "invalid-field",
"description": "versionId must be a valid UUID."
}
]
}
404 Version not found.