Skip to content

Update ​

PATCH

/:tenantId/patient-groups/:id

Body ​

json
{
  "name": "Updated group name",
  "discount_rate": 15
}
NameTypeRequiredDescription
namestringnoName of the patient group
discount_ratenumbernoDiscount 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."
        ]
    }
}