Water & Vitamins
Toggle taken status for a supplement (upsert)
put/api/log/vitamins/{supplementId}
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/vitamins/{supplementId}
- AuthHTTP bearer
Path parameters
supplementIdnumber required
Headers
x-timezonestring required
Request body
Example request
{
"taken": true,
"logDate": "2026-02-19"
}Response
unknown required
Example response
{
"success": true,
"log": {
"id": 5,
"user_id": 5,
"supplement_id": 1,
"taken": true,
"log_date": "2026-02-19",
"created_at": "2026-02-19T09:00:00.000Z"
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.