• Public
  • Public/Protected
  • All

Interface RequestTask

A todoist task as the todoist API expects it





content: string

Task content.

Optional due_date

due_date: undefined | string

Specific date in YYYY-MM-DD format relative to user’s timezone.

Optional due_datetime

due_datetime: undefined | string

Specific date and time in RFC3339 format in UTC.

Optional due_lang

due_lang: undefined | string

2-letter code specifying language in case due_string is not written in English.

Optional due_string

due_string: undefined | string

Human defined task due date (ex.: “next Monday”, “Tomorrow”). Value is set using local (not UTC) time.

Optional label_ids

label_ids: number[]

Ids of labels associated with the task.

Optional order

order: undefined | number

Non-zero integer value used by clients to sort tasks inside project.

Optional priority

priority: undefined | number

Task priority from 1 (normal) to 4 (urgent).

Optional project_id

project_id: undefined | number

Task project id. If not set, task is put to user’s Inbox.

Generated using TypeDoc