Online Docs

List comments

Retrieve all comments of a task.

GET /api/tasks/{task-id}/comments [?]
–x-appvity-channelId: [ChannelID]
–x-appvity-teamid: [TeamID]
–Cookie: graphNodeCookie=[ID]

URL Endpoint

api/tasks/{task-id}/comments

Method

GET.

Parameters

This method does not support OData Filter parameters.

Request

Header

1
2
3
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]

Body

This method does not supply the request body.

Response

Success

If successful, this method returns a 200 OK response code and the comment list of a task object in the response body.

Error

Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION
Content: {error: “error message”}

Example

Request

1
2
3
4
5
6
7
curl --location --request GET
'https://teams.appvity.com/api/tasks/5f602e564d596392f53d45b6/comments?t=1600139403224&$count=true&$top=50' \

--header 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'Content-Type: application/json' \
--header 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2'\
--header 'Cookie: graphNodeCookie=s%3AP6Q5jPUtwmssNyjIzya3wsfcRKXabP2_.0JO9NorfqswRNvufDBQ2P9RgcUJJFuePB102P%2FMPclY' \

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"count": 2,
"comments": [
{
"id": 2,
"body": "This is comment 1",
"updated": "2020-09-15T03:08:43.17Z",
"created": "2020-09-15T03:08:43.17Z",
"author": {
"id": "0dc8bc36-6354-6e6b-b074-2297d0037b31",
"sourceId": "oliver@anadea.com",
"name": "Oliver Neal <oliver@anadea.com>",
"displayName": "Oliver Neal"
}
},
{
"id": 3,
"body": "Are u done this task?",
"updated": "2020-09-15T03:08:58.887Z",
"created": "2020-09-15T03:08:58.887Z",
"author": {
"id": "0dc8bc36-6354-6e6b-b074-2297d0037b31",
"sourceId": "oliver@anadea.com",
"name": "Oliver Neal <oliver@anadea.com>",
"displayName": "Oliver Neal"
}
}
]
}

Comment

Was this article helpful?
Thanks For Your Feedback