Review Reply Draft Resource¶
A redirecting resource that points to the current draft reply.
This works as a convenience to access the current draft reply, so that clients can discover the proper location.
Details¶
Name | reply_draft |
URI | /api/review-requests/{review_request_id}/reviews/{review_id}/replies/{reply_id}/draft/ |
Token Policy ID | review_reply_draft |
HTTP Methods |
|
Parent Resource | |
Child Resources | None |
Links¶
Name |
Method |
Resource |
---|---|---|
self | GET |
HTTP GET¶
Returns the location of the current draft reply.
If the draft reply exists, this will return HTTP 302 Found with
a Location
header pointing to the URL of the draft. Any
operations on the draft can be done at that URL.
If the draft reply does not exist, this will return a Does Not Exist error.
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.reply-draft+json¶
$ curl https://reviews.example.com/api/review-requests/8/reviews/8/replies/draft/ -H "Accept: application/json"
HTTP 302 Found
Content-Length: 14
Location: https://reviews.example.com/api/review-requests/8/reviews/8/replies/11/?
Vary: Accept, Cookie
X-Content-Type-Options: nosniff