Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Latest commit

 

History

History
98 lines (72 loc) · 1.82 KB

task_comment.md

File metadata and controls

98 lines (72 loc) · 1.82 KB

Task Comment

A task_comment is a comment that belongs to a task.

Get the Comments for a Task or a List

GET a.wunderlist.com/api/v1/task_comments

Params

name type notes
task_id integer required

or

name type notes
list_id integer required

Response

Status: 200

json
[
  {
    "id": 1234,
    "task_id": 1234,
    "revision": 12,
    "text": "Hey there",
    "type": "task_comment",
    "created_at": "2013-08-30T08:36:13.273Z",
    "author": {
      "id": 11111111,
      "name": "EXAMPLE",
      "avatar": "https:\/\/a.wunderlist.com\/api\/v1\/avatar?user_id=11111111"
    }
  }
]

Get a specific Comment

GET a.wunderlist.com/api/v1/task_comments/:id

Response

Status: 200

json
{
  "id": 1234,
  "task_id": 1234,
  "revision": 12,
  "text": "Hey there",
  "type": "task_comment",
  "created_at": "2013-08-30T08:36:13.273Z"
}

Create a Comment

POST a.wunderlist.com/api/v1/task_comments

Data

name type notes
task_id integer required
text string required

Request body example

json
{
  "task_id": 1234,
  "text": "Hey there"
}

Response

Status: 201

json
{
  "id": 1234,
  "task_id": 1234,
  "revision": 12,
  "text": "Hey there",
  "type": "task_comment",
  "created_at": "2013-08-30T08:36:13.273Z",
  "author": {
    "id": 11111111,
    "name": "EXAMPLE",
    "avatar": "https:\/\/a.wunderlist.com\/api\/v1\/avatar?user_id=11111111"
  }
}