Skip to main content
POST/transactional-api/create-data-entry-template-version

Create Data Entry Template Version

Creates a new draft version of a data entry template.

Authorization: Bearer token (JWT). See Authentication.

Request

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/create-data-entry-template-version' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"templateId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"versionNumber": "string",
"content": "string"
}'

Body parameters

FieldTypeRequiredDescription
templateIdstring<uuid>YesID of the data entry template to create a version for.
versionNumberstringYesVersion identifier. Free-form string, for example 1.0 or 2025-01. Must be unique within the template (case-insensitive).
contentstringYesTemplate content.

Responses

201 Created.
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Invalid request.
3 possible code values
CodeDescriptionWhen
missing-required-fieldfieldName is requireda required field is absent
invalid-operationHuman-readable reason.business rule violation
invalid-fieldfieldName must be a valid UUIDa UUID field is not a valid UUID
{
"errors": [
{
"code": "missing-required-field",
"description": "fieldName is required"
}
]
}
404 Data entry template not found.