POST
/transactional-api/update-miscellaneous-taskUpdate 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
| Field | Type | Required | Description |
|---|---|---|---|
patientId | string<uuid> | Yes | Medicus patient identifier. |
taskId | string<uuid> | Yes | |
description | string | No | |
priority | enum | No | One of: normal, high. |
dueDate | string<date> (nullable) | No | |
assignee | object | No | Object with: type, id. |
status | enum | No | completed or discarded needs an incomplete task. incomplete reopens a completed or discarded task. One of: incomplete, completed, discarded. |
Responses
200 Success.
Response fields
| Field | Type | Description |
|---|---|---|
status | string |
{
"status": "ok"
}
400 Validation error.
6 possible code values
| Code | Description | When |
|---|---|---|
missing-task-id | The taskId is required | taskId missing |
missing-description | The description is required | description is blank |
invalid-status | The status is not valid | status is not incomplete, completed or discarded |
patient-not-found | Patient not found for this patientId | patientId does not exist |
patient-restricted | Access to this patient is restricted for this staff member | patient record is restricted and the requesting staff member is not permitted to see it |
assignee-not-found | No staff member or team found for this assignee | assignee id does not match a staff member or team of the given type |
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"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
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "forbidden",
"description": "The calling application does not have permission to use this endpoint."
}
]
}
404 Task not found.
Response fields
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"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
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"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"
}
]
}