Dida365Dida365 Open API
POST/open/v1/habit
Create Habit
Create Habit
Use OAuth 2.0 to manage Dida365 projects, tasks, comments, tags, focus records, countdowns, habits, and check-ins.
Request
- operationId
createHabit- Server
https://api.dida365.com- Authentication
- OAuth2
Request parameters
No URL, query, or header parameters.
Request body
HabitCreaterequired
Content-Type: application/json
{
"name": "Read",
"iconRes": "habit_reading",
"color": "#4D8CF5",
"type": "Boolean",
"goal": 1,
"step": 1,
"unit": "Count",
"repeatRule": "RRULE:FREQ=DAILY;INTERVAL=1",
"recordEnable": false
}Responses
200
OpenHabitapplication/json
Created habit
201
unknown
Created without response content
401
unknown
Unauthorized
403
unknown
Forbidden
404
unknown
Not Found