Skip to main content
PUT
Update a habit

Authorizations

X-API-Key
string
header
required

API key generated from our app (Settings > API). Only one key can be active at a time.

Path Parameters

habitId
string
required

The unique identifier of the habit to update

Body

application/json
name
string

New display name for the habit

description
string

New description for the habit

occurrence
object

Defines the recurrence schedule for a habit. A habit can occur daily, on specific days of the week, on specific days of the month, or at a fixed interval of days.

startDate
string<date>

New start date for the habit (YYYY-MM-DD format)

icon
string

New icon identifier

colorHex
string

New hex color code

customUnitName
string

New custom unit name for measurable habits

areaIds
string[]

Area IDs to assign the habit to (replaces existing assignments)

timeOfDayIds
string[]

Time-of-day period IDs to assign the habit to (replaces existing assignments)

goal
object

Goal to set for the habit

reminders
object

Reminders to set for the habit

endCondition
object

Input payload for creating a date-based end condition.

Response

Habit updated successfully