Set and Publish Review Draft¶
Path: | api/json/reviewrequests/{review_request_id}/reviews/draft/publish/ |
---|
URL Parameters¶
Parameter | Type | Description |
---|---|---|
review_request_id | Integer | The ID of the review request. |
HTTP POST¶
Sets fields in the draft review and publishes the draft.
This will create a new draft if one doesn’t already exist, in which case fields should be set along with it. Otherwise, setting fields is optional in this request.
Publishing the draft may cause an outgoing notification, such as an e-mail.
Request Parameters¶
Parameter | Type | Description |
---|---|---|
shipit | Boolean | Whether or not the review should be marked “ship it!” |
body_top | String | The body text preceeding the comments. |
body_bottom | String | The body text following the comments. |
Example Request¶
POST /api/json/reviewrequests/12321/reviews/draft/publish/
Responses¶
HTTP 401: Unauthorized¶
Error 103: Not Logged In¶
The client making the request is not logged in.
See Authenticating for more information.
HTTP 404: Not Found¶
The review request with the given review_request_id does not exist on the server.