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

Create Data Entry Template Version Comment

Adds an internal comment to a data entry template version. The comment is shown against the name of the calling application.

Authorization: Bearer token (JWT). See Authentication.

Request​

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/create-data-entry-template-version-comment' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"versionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"comment": "Draft 2.1 created for CT-412."
}'

Body parameters

FieldTypeRequiredDescription
versionIdstring<uuid>YesID of the data entry template version to comment on.
commentstringYesComment text.

Responses​

201 Created.

Response fields

FieldTypeDescription
idstring<uuid>
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Invalid request.
2 possible code values
CodeDescriptionWhen
missing-required-fieldfieldName is requireda required field is absent
invalid-fieldfieldName must be a valid UUIDa UUID field is not a valid UUID

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "missing-required-field",
"description": "fieldName is required"
}
]
}
404 Data entry template version not found.