Provides information on screenshots comments made on a review.
If the review is a draft, then comments can be added, deleted, or
changed on this list. However, if the review is already published,
then no changes can be made.
If specified, a single count field is returned with the number of results, instead of the results themselves.
max-resultsInteger
The maximum number of results to return in this list. By default, this is 25. There is a hard limit of 200; if you need more than 200 results, you will need to make more than one request, using the “next” pagination link.
startInteger
The 0-based index of the first result in the list. The start index is usually the previous start index plus the number of previous results. By default, this is 0.
The text type, if any, to force for returned text fields. The contents will be converted to the requested type in the payload, but will not be saved as that type.
Added in 2.0.9
issue_openedBoolean
Whether the comment opens an issue.
Added in 2.0
text_typeOne of plain, markdown
The content type for the comment text field. The default is plain.
{"links":{"create":{"href":"https://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/","method":"POST"},"self":{"href":"https://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/","method":"GET"}},"screenshot_comments":[{"extra_data":{},"h":44,"id":1,"issue_opened":false,"issue_status":"","links":{"delete":{"href":"https://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/","method":"DELETE"},"screenshot":{"href":"https://reviews.example.com/api/review-requests/8/screenshots/1/","method":"GET","title":"Example Screenshot (uploaded/images/2010/08/13/screenshot1.png)"},"self":{"href":"https://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/","method":"GET"},"update":{"href":"https://reviews.example.com/api/review-requests/8/reviews/8/screenshot-comments/1/","method":"PUT"},"user":{"href":"https://reviews.example.com/api/users/admin/","method":"GET","title":"admin"}},"public":true,"text":"This comment makes an astute observation.","text_type":"plain","thumbnail_url":"/media/uploaded/images/2010/08/13/screenshot1_132_109_198_44.png","timestamp":"2010-08-28T02:24:31Z","w":198,"x":132,"y":109}],"stat":"ok","total_results":1}
Review Screenshot Comment List Resource¶
Added in 1.6
Provides information on screenshots comments made on a review.
If the review is a draft, then comments can be added, deleted, or changed on this list. However, if the review is already published, then no changes can be made.
Details¶
screenshot_comments
/api/review-requests/{review_request_id}/reviews/{review_id}/screenshot-comments/
review_screenshot_comment
GET - Returns the list of screenshot comments made on a review.
POST - Creates a screenshot comment on a review.
Review Resource
Links¶
Name
Method
Resource
POST
Review Screenshot Comment List Resource
GET
Review Screenshot Comment List Resource
HTTP GET¶
Returns the list of screenshot comments made on a review.
Request Parameters¶
If specified, a single
count
field is returned with the number of results, instead of the results themselves.The maximum number of results to return in this list. By default, this is 25. There is a hard limit of 200; if you need more than 200 results, you will need to make more than one request, using the “next” pagination link.
The 0-based index of the first result in the list. The start index is usually the previous start index plus the number of previous results. By default, this is 0.
Errors¶
HTTP POST¶
Creates a screenshot comment on a review.
This will create a new comment on a screenshot as part of a review. The comment contains text and dimensions for the area being commented on.
Extra data can be stored later lookup. See Storing/Accessing Extra Data for more information.
Request Parameters¶
The height of the comment region.
The ID of the screenshot being commented on.
The comment text.
Added in 2.0
The width of the comment region.
The X location for the comment.
The Y location for the comment.
plain
,markdown
,html
The text type, if any, to force for returned text fields. The contents will be converted to the requested type in the payload, but will not be saved as that type.
Added in 2.0.9
Whether the comment opens an issue.
Added in 2.0
plain
,markdown
The content type for the comment text field. The default is
plain
.Added in 2.0
Errors¶
Examples¶
application/vnd.reviewboard.org.screenshot-comments+json¶