Update habit
update_habitUpdate an existing habit. Only provided fields are changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Lucide icon name (lowercase, dashes), e.g. book-open | |
| name | No | New habit name | |
| unit | No | New unit label | |
| color | No | Color as #rrggbb, e.g. #10AC84 | |
| active | No | Enable or disable the habit | |
| habit_id | Yes | ID of the habit to update | |
| time_of_day | No | When during the day | |
| target_value | No | New target count value | |
| tracking_type | No | New tracking type | |
| times_per_week | No | New times per week target (1-7) | |
| target_duration | No | New target duration in minutes (5-480) |