Review Reply File Attachment Comment List Resource¶
Added in 1.6
Provides information on replies to file comments made on a review reply.
If the reply is a draft, then comments can be added, deleted, or changed on this list. However, if the reply is already published, then no changed can be made.
Details¶
Name | file_attachment_comments |
URI | /api/review-requests/{review_request_id}/reviews/{review_id}/replies/{reply_id}/file-attachment-comments/ |
Token Policy ID | review_reply_file_attachment_comment |
HTTP Methods | |
Parent Resource | Review Reply Resource |
Child Resources |
Links¶
Name | Method | Resource |
---|---|---|
create | POST | Review Reply File Attachment Comment List Resource |
self | GET | Review Reply File Attachment Comment List Resource |
HTTP GET¶
Returns the list of replies to file comments made on a review reply.
Request Parameters¶
counts-onlyBoolean | 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. |
Errors¶
100 - Does Not ExistHTTP 404 - Not Found | Object does not exist |
101 - Permission DeniedHTTP 403 - Forbidden | You don’t have permission for this |
103 - Not Logged InHTTP 401 - Unauthorized | You are not logged in |
105 - Invalid Form DataHTTP 400 - Bad Request | One or more fields had errors |
112 - OAuth2 Missing Scope ErrorHTTP 403 - Forbidden | Your OAuth2 token lacks the necessary scopes for this request. |
113 - OAuth2 Access Denied ErrorHTTP 403 - Forbidden | OAuth2 token access for this resource is prohibited. |
HTTP POST¶
Creates a reply to a file comment on a review.
This will create a reply to a file comment on a review. The new comment will contain the same dimensions of the comment being replied to, but may contain new text.
Extra data can be stored later lookup. See Storing/Accessing Extra Data for more information.
Request Parameters¶
reply_to_idInteger | Required The ID of the comment being replied to. |
textRich Text | Required The comment text. Added in 2.0 |
force_text_typeOne of 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 |
text_typeOne of plain , markdown |
The content type for the comment text field. The default is Added in 2.0 |
Errors¶
100 - Does Not ExistHTTP 404 - Not Found | Object does not exist |
101 - Permission DeniedHTTP 403 - Forbidden | You don’t have permission for this |
103 - Not Logged InHTTP 401 - Unauthorized | You are not logged in |
105 - Invalid Form DataHTTP 400 - Bad Request | One or more fields had errors |
112 - OAuth2 Missing Scope ErrorHTTP 403 - Forbidden | Your OAuth2 token lacks the necessary scopes for this request. |
113 - OAuth2 Access Denied ErrorHTTP 403 - Forbidden | OAuth2 token access for this resource is prohibited. |
Examples¶
application/vnd.reviewboard.org.review-reply-file-attachment-comments+json¶
$ curl https://reviews.example.com/api/review-requests/8/reviews/8/replies/10/file-attachment-comments/ -H "Accept: application/json"
HTTP 200 OK
Content-Length: 1529
Content-Type: application/vnd.reviewboard.org.review-reply-file-attachment-comments+json
ETag: b588d97bdb46485643234e9ffd573a603e0656cb
Item-Content-Type: application/vnd.reviewboard.org.review-reply-file-attachment-comment+json
Vary: Accept, Cookie
X-Content-Type-Options: nosniff
{
"file_attachment_comments": [
{
"diff_against_file_attachment": null,
"extra_data": {},
"id": 2,
"issue_opened": false,
"issue_status": "",
"link_text": "Example Attachment",
"links": {
"delete": {
"href": "https://reviews.example.com/api/review-requests/8/reviews/8/replies/10/file-attachment-comments/2/",
"method": "DELETE"
},
"file_attachment": {
"href": "https://reviews.example.com/api/review-requests/8/file-attachments/1/",
"method": "GET",
"title": "Example Attachment"
},
"reply_to": {
"href": "https://reviews.example.com/api/review-requests/8/reviews/8/file-attachment-comments/1/",
"method": "GET",
"title": "A fantastic comment on a fantastic file!"
},
"self": {
"href": "https://reviews.example.com/api/review-requests/8/reviews/8/replies/10/file-attachment-comments/2/",
"method": "GET"
},
"update": {
"href": "https://reviews.example.com/api/review-requests/8/reviews/8/replies/10/file-attachment-comments/2/",
"method": "PUT"
},
"user": {
"href": "https://reviews.example.com/api/users/admin/",
"method": "GET",
"title": "admin"
}
},
"public": true,
"review_url": "/r/8/#fcomment2",
"text": "A reply to a fantastic comment.",
"text_type": "plain",
"thumbnail_html": "",
"timestamp": "2011-08-26T02:52:57Z"
}
],
"links": {
"create": {
"href": "https://reviews.example.com/api/review-requests/8/reviews/8/replies/10/file-attachment-comments/",
"method": "POST"
},
"self": {
"href": "https://reviews.example.com/api/review-requests/8/reviews/8/replies/10/file-attachment-comments/",
"method": "GET"
}
},
"stat": "ok",
"total_results": 1
}