v1
latestOpenAPI 3.0.02026-07-2417611.8 MBRetrieve all comments for a specific item.
Use the /comments/by-item/{classification}/{id} endpoint to fetch all comments that are associated to a specific item. Use the query parameter 'since' to fetch comments since a specific date. Conditional requests are supported.<br />User roles: admin, manager, editor, viewer
Path parameters
Provide the classification of the item for which you want to retrieve the comments.
Provide ID of the item for which you want to retrieve the comments.
Query parameters
Provide the date from when to retrieve comments. Only comments that were added after this date are retrieved. The date value must be in the ISO 8601 format YYYY-MM-DD T hh:mm:ss:sssZ.
Use the offset parameter to specify the number of comments to skip from the beginning of the list and return the rest.
Set the limit for the maximum number of comments to return in a single result. The maximum number of comments that are returned by default is 50.
Specify whether you want the comments to be returned in ascending or descending order. Comments are returned in descending order by default.
Only the comment properties that are specified here are returned for each result. Any comment property is a valid value and can be specified in a comma-separated list. For example, to show only the comment properties message and creatorId, provide the values of message and creatorId. All comment properties are returned by default.
Response
Successfully lists a paged result view of all comments for the given item, optionally filtered by date.
Example response
{
"limit": 50,
"href": "/comments?offset=50&limit=50",
"next": "/comments?offset=100&limit=50",
"previous": "/comments?offset=0&limit=50",
"items": [
{
"creatorId": "f8c1344e-2296-441b-a8a6-f8d46b72a787",
"id": "95927bcd-9da3-4d8a-9fbf-ffcabe80a8a4",
"rev": "2-c839bbb8844549c2e298275c4b2adcb8",
"message": "More images should be added to slideshow",
"created": "2017-05-28T22:59:27.610Z",
"target": {
"id": "6eac5498-3545-458a-962b-e17742aa7b56",
"classification": "content"
},
"threadId": "b3a18c87-8be0-4938-bba9-98a4cea35200",
"classification": "Comment",
"creator": "Krista",
"lastModifier": "Krista",
"lastModifierId": "f8c1344e-2296-441b-a8a6-f8d46b72a787",
"lastModified": "2017-05-28T22:59:27.610Z"
}
]
}