Dida365/updateHabit

Dida365Dida365 Open API

POST/open/v1/habit/{habitId}

Update Habit

Update Habit

Use OAuth 2.0 to manage Dida365 projects, tasks, comments, tags, focus records, countdowns, habits, and check-ins.

Request

operationId
updateHabit
Server
https://api.dida365.com
Authentication
OAuth2

Request parameters

habitId

pathstringrequired

Habit identifier

habit-1

Request body

HabitUpdaterequired

Content-Type: application/json

{
  "name": "Read more",
  "goal": 2,
  "repeatRule": "RRULE:FREQ=DAILY;INTERVAL=1"
}

Responses

200

OpenHabitapplication/json

Updated habit

201

unknown

Created without response content

401

unknown

Unauthorized

403

unknown

Forbidden

404

unknown

Not Found