Water & Vitamins
Movement trend (logged minutes/day) for sharing
Changed onDaily series for the shareable trend card, shaped like GET /journey/weight-trend. window = month (30 days) | 6months (180) | year (365); one point per logged day, empty days omitted. Headline stats (starting/current/goal/change/average/goal_progress_pct) sit beside the points. Manually logged movement only — synced steps/active minutes live on GET /health/{steps|active_minutes}/trend/me.
get/api/log/movement/trend
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/log/movement/trend
- AuthHTTP bearer
Query parameters
window'month' | '6months' | 'year'
Same windows as GET /journey/weight-trend: month = last 30 days, 6months = last 180, year = last 365. Defaults to "month".
datestring
Example:2026-10-26
End-date anchor in YYYY-MM-DD (inclusive). Defaults to today in the user's timezone.
Headers
x-timezonestring required
Response
Example response
{
"unit": "oz",
"points": [
{
"date": "2026-10-24",
"value": 56
}
]
}Changes
- info
endpoint added
- info