latestOpenAPI 3.0.0Apache 2.02026-08-201250995.7 KB

bd9694db5fce

Pets

List all Weights for Pet

Permissions needed: ACCESS_PATIENTS Returns the list of Weights for Pet

get/api/v1/pets/{id}/weights

Query parameters

filter[type]string required

Who registerd the Weights(ex.: <i>vet<i/> | <i>owner</i>)

filter[clinic_id]integer

Clinic ID (<font color='red'>required</font> when <i>filter[type]</i> is <i>vet</i>)

Parameters

#/paths/~1api~1v1~1sales/delete/parameters/0 — unresolved $ref

Response

successful operation

Example response

{
  "data": {
    "clinic_unit": "lbs",
    "last_weight_value": 79.38,
    "weight_trend_is_up": true,
    "weights": {
      "dateTimes": [
        "17-01-2020",
        "21-01-2020",
        "26-02-2020",
        "31-03-2020",
        "29-04-2020",
        "08-05-2020",
        "12-05-2020",
        "14-05-2020",
        "18-05-2020",
        "19-05-2020",
        "26-05-2020",
        "10-06-2020",
        "10-06-2020",
        "15-06-2020",
        "17-06-2020"
      ],
      "kg": [
        71,
        71,
        22,
        20,
        28,
        20,
        20,
        22,
        40,
        32,
        24,
        30,
        23,
        35,
        36
      ],
      "lbs": [
        156.555,
        156.555,
        48.51,
        44.1,
        61.74,
        44.1,
        44.1,
        48.51,
        88.2,
        70.56,
        52.92,
        66.15,
        50.715,
        77.175,
        79.38
      ]
    }
  }
}