Skip to main content

List comments

Retrieve all comments of a task.

GET /api/tasks/{task-id}/comments [?<CommonODataExpression>]  
--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

--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

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' \