Tasks

Tasks JSON Objects

The official API documentation shows us the outline of a complete task:

{
    "assignee": 2671142,
    "assigner": 2671362,
    "comment_count": 10,
    "completed": true,
    "content": "Buy Milk",
    "description": "",
    "due": {
        "date": "2016-09-01",
        "datetime": "2016-09-01T09:00:00Z",
        "recurring": false,
        "string": "tomorrow at 12",
        "timezone": "Europe/Moscow"
        },
    "id": 2995104339,
    "label_ids": [2156154810, 2156154820, 2156154826],
    "order": 1,
    "priority": 1,
    "project_id": 2203306141,
    "section_id": 7025,
    "parent_id": 2995104589,
    "url": "https://todoist.com/showTask?id=2995104339&sync_id=2995104344"
}

Working Locally

Create tasks locally

import { Task } from "todoist-rest-client";
let myTask = Task({ content: "Task name" });

Last updated