Skip to content
中文

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.

Signature

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}>;

Parameters

NameInTypeRequiredDescription
workpathstringyesThe 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.

Responses

StatusContent typesDescription
200application/jsonThe work’s review settings with its maximum rounds and current revision.
400application/jsonINVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
401application/jsonThe API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
404application/jsonWORK_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.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.