Water & Vitamins

Toggle taken status for a supplement (upsert)

put/api/log/vitamins/{supplementId}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/log/vitamins/{supplementId}
  • Auth
    HTTP bearer

Path parameters

supplementIdnumber required

Headers

x-timezonestring required

Request body

takenboolean required
logDatestring

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.