Skip to content

Create ​

POST

/:tenantId/patient-groups

Body ​

json
{
    "name": "VIP Patients",
    "discount_rate": 10
}
NameTypeRequiredDescription
namestringyesName of the patient group
discount_ratenumbernoDiscount rate between 0 and 100; defaults to 0.

Response ​

HTTP 201 Created

json
{
  "data": {
    "id": 105,
    "name": "VIP Patients",
    "patients_count": 0,
    "discount_rate": 10
  }
}

HTTP 422 Unprocessable Content

json
{
  "message": "The name field is required.",
  "errors": {
    "name": [
      "The name field is required."
    ]
  }
}