Change Resource¶
Added in 1.6
Provides information on a change made to a public review request.
A change includes, optionally, text entered by the user describing the change, and also includes a list of fields that were changed on the review request.
The list of fields changed are in fields_changed
. The keys are the
names of the fields, and the values are details on that particular
change to the field.
Details¶
Name | change |
URI | /api/review-requests/{review_request_id}/changes/{change_id}/ |
Token Policy ID | change |
HTTP Methods |
|
Parent Resource | |
Child Resources | None |
Fields¶
fields_changedDictionary | The fields that were changed. Each key is the name of a changed field, and each value is a dictionary of details on that change. For
For
For
For
For
|
idInteger | The numeric ID of the change description. |
textRich Text | The description of the change written by the submitter. |
text_typeOne of plain , markdown , html |
The mode for the text field. Added in 2.0 |
timestamp | The date and time that the change was made. |
Links¶
Name |
Method |
Resource |
---|---|---|
self | GET |
HTTP GET¶
Returns the information on a change to a review request.
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 |
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-request-change+json¶
$ curl https://reviews.example.com/api/review-requests/10/changes/4/ -H "Accept: application/json"
HTTP 200 OK
Content-Length: 986
Content-Type: application/vnd.reviewboard.org.review-request-change+json
ETag: b81d2c1da1e6888993e00091197147da91c83d2a
Vary: Accept, Cookie
X-Content-Type-Options: nosniff
{
"change": {
"fields_changed": {
"diff": {
"added": {
"base_commit_id": "1baa5285167980271becd922acd77a20a20b916b",
"basedir": "",
"commit_count": 2,
"extra_data": {},
"id": 14,
"links": {
"commits": {
"href": "https://reviews.example.com/api/review-requests/10/diffs/2/commits/",
"method": "GET"
},
"files": {
"href": "https://reviews.example.com/api/review-requests/10/diffs/2/files/",
"method": "GET"
},
"repository": {
"href": "https://reviews.example.com/api/repositories/3/",
"method": "GET",
"title": "Git Repo"
},
"self": {
"href": "https://reviews.example.com/api/review-requests/10/diffs/2/",
"method": "GET"
},
"update": {
"href": "https://reviews.example.com/api/review-requests/10/diffs/2/",
"method": "PUT"
}
},
"name": "diff",
"revision": 2,
"timestamp": "2018-08-10T22:16:47Z"
}
}
},
"id": 4,
"links": {
"self": {
"href": "https://reviews.example.com/api/review-requests/10/changes/4/",
"method": "GET"
}
},
"text": "",
"text_type": "plain",
"timestamp": "2018-08-10T22:16:47Z"
},
"stat": "ok"
}