Water & Vitamins

Add a supplement to user's list

post/api/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/vitamins
  • Auth
    HTTP bearer

Request body

namestring required
recommendedDosestring
type'preset' | 'custom'

Example request

{
  "name": "Vitamin D",
  "recommendedDose": "1000 IU",
  "type": "preset"
}

Response

unknown required

Example response

{
  "success": true,
  "supplement": {
    "id": 3,
    "user_id": 5,
    "name": "MyVitamin",
    "type": "custom",
    "recommended_dose": "1 cap",
    "created_at": "2026-02-10T00:00:00.000Z"
  }
}

Changes

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