Review Draft Resource¶
A redirecting resource that points to the current draft review.
Details¶
Name | review_draft |
URI | /api/review-requests/{review_request_id}/reviews/{review_id}/draft/ |
Token Policy ID | review_draft |
HTTP Methods |
|
Parent Resource | |
Child Resources | None |
Links¶
Name |
Method |
Resource |
---|---|---|
self | GET |
HTTP GET¶
Returns an HTTP redirect to the current draft review.
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-draft+json¶
$ curl https://reviews.example.com/api/review-requests/8/reviews/draft/ -H "Accept: application/json"
HTTP 302 Found
Content-Length: 14
Location: https://reviews.example.com/api/review-requests/8/reviews/12/?
Vary: Accept, Cookie
X-Content-Type-Options: nosniff