Update
PATCH
/:tenantId/patient-groups/:idBody
json
{
"name": "Updated group name",
"discount_rate": 15
}| Name | Type | Required | Description |
|---|---|---|---|
| name | string | no | Name of the patient group |
| discount_rate | number | no | Discount rate between 0 and 100. |
Response
HTTP 200 OK
json
{
"data": {
"id": 5,
"name": "Updated group name",
"patients_count": 0,
"discount_rate": 15
}
}HTTP 422 Unprocessable Content
json
{
"message": "The name field must be a string.",
"errors": {
"name": [
"The name field must be a string."
]
}
}