Problems API - GET all comments
Lists all comments on the specified problem.
The request produces an application/json
payload.
This request is an Early Adopter release and may be changed in non-compatible way.
GET |
|
Authentication
To execute this request, you need the Read problems (problems.read
) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
problemId | string |
The ID of the required problem. |
path | required |
nextPageKey | string |
The cursor for the next page of results. You can find it in the nextPageKey field of the previous response. The first page is always returned if you don't specify the nextPageKey query parameter. When the nextPageKey is set to obtain subsequent pages, you must omit all other query parameters except the optional fields parameter. |
query | optional |
pageSize | integer |
The amount of comments in a single response payload. The maximal allowed page size is 500. If not set, 10 is used. |
query | optional |
Response
Response codes
Code | Description |
---|---|
200 | Success |
Response body
The CommentsList object
A list of comments.
Element | Type | Description |
---|---|---|
comments | Comment[] | |
totalCount | integer | The total number of entries in the result. |
pageSize | integer | The number of entries per page. |
nextPageKey | string | The cursor for the next page of results. Has the value of Use it in the nextPageKey query parameter to obtain subsequent pages of the result. |
The Comment object
The comment to a problem.
Element | Type | Description |
---|---|---|
authorName | string | The user who wrote the comment. |
createdAtTimestamp | integer | The timestamp of comment creation, in UTC milliseconds. |
context | string | The context of the comment. |
id | string | The ID of the comment. |
content | string | The text of the comment. |
{
"comments": [
{
"authorName": "string",
"createdAtTimestamp": 0,
"context": "string",
"id": "string",
"content": "string"
}
],
"totalCount": 0,
"pageSize": 0,
"nextPageKey": "AQAAABQBAAAABQ=="
}