Skip to main content
PATCH
Update a habit

Authorizations

Authorization
string
header
required

A pc_… token generated from Settings > API & MCP.

Path Parameters

habitId
string
required

Body

application/json
name
string
Required string length: 1 - 200
rule
object

A habit's rule: the task's repeat grammar without a mode, phased on startsOn.

startsOn
string<date>

Local day key, YYYY-MM-DD.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
target
object

What one occurrence asks for: a tick, a quantity in a unit, or minutes.

Response

Success.

habit
object
required