Skip to main content
POST/transactional-api/create-miscellaneous-task

Create Miscellaneous Task

Creates a miscellaneous task for a patient, assigned to a staff member or team.

Authorization: Bearer token (JWT). See Authentication.

Request​

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/create-miscellaneous-task' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"patientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"description": "Call the patient to book a blood test",
"assignee": {
"type": "team",
"id": "6c1f2d7e-1b3a-4f0e-9a2c-5d8e7f6a4b3c"
},
"priority": "high",
"dueDate": "2026-11-18"
}'

Body parameters

FieldTypeRequiredDescription
patientIdstring<uuid>YesMedicus patient identifier.
descriptionstringYes
assigneeobjectYesObject with: type, id.
priorityenumNoOne of: normal, high.
dueDatestring<date>No

Responses​

200 Task created.

Response fields

FieldTypeDescription
idstring<uuid>Identifier of the created task.
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Validation error.
10 possible code values
CodeDescriptionWhen
missing-patient-idThe patientId is requiredpatientId missing
invalid-patient-idThe patientId is not validpatientId not a valid UUID
missing-descriptionThe description is requireddescription missing or blank
missing-assigneeThe assignee is requiredassignee missing
invalid-assigneeThe assignee is not validassignee type is not staff or team, or id is not a UUID
invalid-priorityThe priority is not validpriority is not normal or high
invalid-due-dateThe dueDate is not validdueDate not a date in Y-m-d format
patient-not-foundPatient not found for this patientIdpatientId does not exist
patient-restrictedAccess to this patient is restricted for this staff memberpatient record is restricted and the requesting staff member is not permitted to see it
assignee-not-foundNo staff member or team found for this assigneeassignee id does not match a staff member or team of the given type

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "missing-patient-id",
"description": "The patientId is required"
}
]
}
403 The calling application lacks the permission, or the access token is restricted to another patient.

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "forbidden",
"description": "The calling application does not have permission to use this endpoint."
}
]
}