update_habit
Correct a recorded habit or record a change in it: habit_id from get_habits; pass only the fields to change (empty = keep). "I quit in September" = status former + end_date; "now twice a week" = frequency.
Instructions
Correct a recorded habit or record a change in it: habit_id from get_habits; pass only the fields to change (empty = keep). "I quit in September" = status former + end_date; "now twice a week" = frequency. notes replaces the old text — pass the full new note. Dates YYYY-MM-DD, not in the future.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| status | No | ||
| end_date | No | ||
| habit_id | Yes | ||
| frequency | No | ||
| habit_type | No | ||
| start_date | No | ||
| smoking_years | No | ||
| drinks_per_week | No | ||
| cigarettes_per_day | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |