Dida365/createFocus

Dida365Dida365 Open API

POST/open/v1/focus

Create Focus

Create Focus

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

Request

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

Request parameters

No URL, query, or header parameters.

Request body

FocusCreaterequired

Content-Type: application/json

Properties: typetaskIdnotestartTimeendTimepauseDurationdurationrelationType

{
  "type": 0,
  "taskId": "task-1",
  "startTime": "2026-04-07T09:00:00+0800",
  "endTime": "2026-04-07T09:25:00+0800",
  "duration": 1500
}

Responses

200

OpenFocusapplication/json

Created focus record

Properties: iduserIdtypetaskIdnotetasksstatusstartTimeendTimepauseDurationadjustTimeaddedcreatedTimemodifiedTimeetimestampetagdurationrelationType

201

unknown

Created without response content

401

unknown

Unauthorized

403

unknown

Forbidden

404

unknown

Not Found

{
  "id": "focus-1",
  "userId": 0,
  "type": 0,
  "taskId": "task-1",
  "note": "Deep work",
  "tasks": [
    {
      "startTime": "2026-04-07T09:00:00+0800",
      "endTime": "2026-04-07T09:25:00+0800"
    }
  ],
  "status": 2,
  "startTime": "2026-04-07T09:00:00+0800"
}