Read the review settings of a work
Code Mode: praxis.studio.works.reviewSettings.retrieve
HTTP: GET /studio/v1/works/{work}/review-settings
Read how this work is reviewed: the most rounds it may take and the revision the settings are at. Who reviews is not here but on the work’s reviewer roster, which every round asks whole, and read that with the reviewer list. Read this before sending a round, because a draft past its max_rounds answers REVIEW_ROUND_LIMIT, and before changing it, because the update carries the revision it returns as its precondition. Settings are not part of the work body: they are read and written here.
签名
praxis.studio.works.reviewSettings.retrieve(args:{path:{/** e.g. "wu-gang" */ work:string}}):Promise<{/** Most rounds this work may take, counting the first one; sending another round after that answers REVIEW_ROUND_LIMIT until a person raises this number. e.g. 2 */ max_rounds:number;/** Revision of these settings, advanced by one on every change; pass it as expected_revision when changing them. e.g. 3 */ revision:number}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| work | path | string | 是 | The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The work’s review settings with its maximum rounds and current revision. |
| 400 | application/json | INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call. |
| 401 | application/json | The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header. |
| 404 | application/json | WORK_NOT_FOUND means no work in this organization matches that slug or identifier; use the value from the work list, or resolve a loose name first. |
| 500 | application/json | INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed. |