POST /api/vehicle/state with the token as a bearer.
Only soc_pct is needed. Anything missing, mistyped or
out of range is dropped rather than stored, so a partial document is fine.
| Field | Type | Range |
|---|---|---|
soc_pct | number | 0 – 100 |
range_mi | number | 0 – 2000 |
odometer_mi | number | 0 – 2,000,000 |
ambient_f | number | −80 – 160 |
plugged_in | boolean | n/a |
charging | boolean | n/a |
measured_at is when the car took the reading (RFC 3339),
not when you sent it. Leave it out if you don't know - an unstamped value counts
as unknown rather than fresh.