{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-paginated-staff-group-list-schema.json",
  "title": "PaginatedStaffGroupList",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-staff-groups-api-openapi.yml#/components/schemas/PaginatedStaffGroupList",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "results": {
      "items": {
        "$ref": "#/$defs/StaffGroup"
      },
      "type": "array"
    }
  },
  "required": [
    "results"
  ],
  "type": "object",
  "$defs": {
    "StaffGroup": {
      "properties": {
        "created_date": {
          "format": "date-time",
          "readOnly": true,
          "type": [
            "string",
            "null"
          ]
        },
        "deleted_date": {
          "format": "date-time",
          "readOnly": true,
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "is_elation_group": {
          "description": "Whether the staff group is an Elation group.",
          "type": "boolean"
        },
        "name": {
          "description": "The name of the staff group.",
          "maxLength": 50,
          "type": "string"
        },
        "practice": {
          "description": "The id of the practice that the staff group belongs to.",
          "format": "int64",
          "type": "integer"
        },
        "users": {
          "description": "A list of user ids inside the group.",
          "items": {
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "name",
        "practice",
        "users"
      ],
      "type": "object"
    }
  }
}