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

Update Miscellaneous Task

Updates one of a patient's miscellaneous tasks. Only the fields sent are changed. Send dueDate as null to clear it.

Authorization: Bearer token (JWT). See Authentication.

Request​

curl -L -X POST 'https://{tenantId}.api.england.medicus.health/transactional-api/update-miscellaneous-task' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"patientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"taskId": "9b2e4c1a-7d3f-4e8b-a6c5-1f0d2e3b4a59",
"description": "Call the patient to book a blood test",
"priority": "normal",
"dueDate": "2026-11-20",
"assignee": {
"type": "staff",
"id": "1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
},
"status": "completed"
}'

Body parameters

FieldTypeRequiredDescription
patientIdstring<uuid>YesMedicus patient identifier.
taskIdstring<uuid>Yes
descriptionstringNo
priorityenumNoOne of: normal, high.
dueDatestring<date> (nullable)No
assigneeobjectNoObject with: type, id.
statusenumNocompleted or discarded needs an incomplete task. incomplete reopens a completed or discarded task. One of: incomplete, completed, discarded.

Responses​

200 Success.

Response fields

FieldTypeDescription
statusstring
{
"status": "ok"
}
400 Validation error.
6 possible code values
CodeDescriptionWhen
missing-task-idThe taskId is requiredtaskId missing
missing-descriptionThe description is requireddescription is blank
invalid-statusThe status is not validstatus is not incomplete, completed or discarded
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-task-id",
"description": "The taskId 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."
}
]
}
404 Task not found.

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "task-not-found",
"description": "Task not found for this taskId and patientId"
}
]
}
409 The task cannot move to the requested status.

Response fields

FieldTypeDescription
errors[].codestring
errors[].descriptionstring
{
"errors": [
{
"code": "invalid-status-change",
"description": "Only an incomplete task can be completed or discarded, and only a completed or discarded task can be reopened"
}
]
}