Skip to content

Get all

GET

/:tenantId/appointment-types

Query Parameters

Filter Parameters

KeyValue TypeDescription
filter[status]integerFilters results based on the status.

Response

json
{
  "data": [
    {
      "id": 22,
      "name": "Examination",
      "status": 0,
      "is_default": false,
      "color": "#f0faf5",
      "deleted_at": null,
      "created_at": "2024-06-07T10:38:45.000000Z",
      "updated_at": "2024-08-22T10:57:31.000000Z"
    },
    {
      "id": 23,
      "name": "Check up",
      "status": 0,
      "is_default": false,
      "color": "#f0faf5",
      "deleted_at": null,
      "created_at": "2024-06-07T10:38:45.000000Z",
      "updated_at": "2024-08-22T10:57:31.000000Z"
    }
  ],
  "links": {
    "first": "https://<Base URL>/api/v1/:tenantId/appointment-types?page=1",
    "last": "https://<Base URL>/api/v1/:tenantId/appointment-types?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": null,
        "label": "pagination.previous",
        "active": false
      },
      {
        "url": "https://<Base URL>/api/v1/:tenantId/appointment-types?page=1",
        "label": "1",
        "active": true
      },
      {
        "url": null,
        "label": "pagination.next",
        "active": false
      }
    ],
    "path": "https://<Base URL>/api/v1/:tenantId/appointment-types",
    "per_page": 15,
    "to": 1,
    "total": 1
  }
}