Health

Set or update the current user's health goals. Partial updates accepted — omit a field to leave it unchanged. Premium-only.

put/api/health/goals/me

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/health/goals/me
  • Auth
    HTTP bearer

Request body

sleep_hoursnumber

Target sleep hours per night (1–12). Default 7.0.

stepsnumber

Daily step goal (500–50 000). Default 8 000.

active_minutes_minnumber

Daily active minutes goal (10–300). Default 60.

stand_hours_minnumber

Daily stand hours goal (1–16). Default 8.

Example request

{
  "sleep_hours": 7,
  "steps": 8000,
  "active_minutes_min": 60,
  "stand_hours_min": 8
}

Changes

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