Water & Vitamins

Log supplement/vitamin intake (bulk)

post/api/log/vitamins

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
  • Auth
    HTTP bearer

Headers

x-timezonestring required

Request body

logDatestring

Example request

{
  "supplements": [
    {
      "id": 1,
      "name": "Vitamin D",
      "recommendedDose": "1000 IU",
      "taken": true
    }
  ],
  "logDate": "2025-01-15"
}

Response

unknown required

Example response

{
  "success": true,
  "data": [
    {
      "id": 5,
      "user_id": 5,
      "supplement_id": 1,
      "taken": true,
      "log_date": "2026-02-19"
    }
  ]
}

Changes

No recorded changes to this operation across all 34 revisions of this API.