POST
/transactional-api/create-miscellaneous-taskCreate 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
| Field | Type | Required | Description |
|---|---|---|---|
patientId | string<uuid> | Yes | Medicus patient identifier. |
description | string | Yes | |
assignee | object | Yes | Object with: type, id. |
priority | enum | No | One of: normal, high. |
dueDate | string<date> | No |
Responses
200 Task created.
Response fields
| Field | Type | Description |
|---|---|---|
id | string<uuid> | Identifier of the created task. |
{
"id": "00000000-0000-0000-0000-000000000000"
}
400 Validation error.
10 possible code values
| Code | Description | When |
|---|---|---|
missing-patient-id | The patientId is required | patientId missing |
invalid-patient-id | The patientId is not valid | patientId not a valid UUID |
missing-description | The description is required | description missing or blank |
missing-assignee | The assignee is required | assignee missing |
invalid-assignee | The assignee is not valid | assignee type is not staff or team, or id is not a UUID |
invalid-priority | The priority is not valid | priority is not normal or high |
invalid-due-date | The dueDate is not valid | dueDate not a date in Y-m-d format |
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-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
| Field | Type | Description |
|---|---|---|
errors[].code | string | |
errors[].description | string |
{
"errors": [
{
"code": "forbidden",
"description": "The calling application does not have permission to use this endpoint."
}
]
}