Loading…
Update a body-measurement record.
| Permission | Description |
|---|---|
tracker_measurements.update | Update tracker measurement |
Only the athlete who logged the record may update it. A record belonging to somebody else — including one visible through a tracker share — returns 403; share viewers are strictly read-only.
| Name | Type | Required | Description |
|---|---|---|---|
tracked_at | string | No | Datetime the measurements were taken |
neck | float | No | Neck circumference in centimetres (1–300) |
shoulder | float | No | Shoulder circumference in centimetres (1–300) |
chest | float | No | Chest circumference in centimetres (1–300) |
waist | float | No | Waist circumference in centimetres (1–300) |
hip | float | No | Hip circumference in centimetres (1–300) |
arm | float | No | Arm circumference in centimetres (1–300) |
forearm | float | No | Forearm circumference in centimetres (1–300) |
thigh | float | No | Thigh circumference in centimetres (1–300) |
calf | float | No | Calf circumference in centimetres (1–300) |
notes | string | No | Optional notes (max 2000 characters) |
All parameters are optional. If omitted, they will not be updated. Any of them may be set to null.
Unlike POST, update does not require at least one measurement to remain: clearing the last
remaining site is the caller deliberately emptying the row, and refusing it would make a
measurement un-clearable.
{
"data": { /* tracker measurement resource */ }
}
| Status | Error Type | Reference |
|---|---|---|
| 422 | Validation Error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden | Permission error |
| 404 | Not Found | Not found error |