List the reviewers of a work
Code Mode: praxis.studio.works.reviewers.list
HTTP: GET /studio/v1/works/{work}/reviewers
List the reviewers on this work’s roster: every time a round of this work is sent, every reviewer on the roster whose kind the round asks for takes part, one seat each, in the order they were added, and the sender reads them as A, B, C. Each entry gives the agent id as /v1/agents returns it (agent_…), its kind on this roster and the service agent’s display name. Read it before sending a round, because a roster with nobody of the asked kind answers NO_REVIEWERS; read it after to see who has been judging. A reviewer of another work or another organization is never listed, and a work of another organization answers WORK_NOT_FOUND. The answer is one page; keep following next_page_token while it is present.
签名
praxis.studio.works.reviewers.list(args:{path:{/** e.g. "wu-gang" */ work:string};query?:{/** e.g. 20 */ page_size?:number;/** e.g. "01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ page_token?:string}}):Promise<{/** Reviewers on this page, in the order they were added, which is the order a round labels them in. */ items:Array<{/** Identifier of the reviewer agent, and the value the reviewer path segment takes. e.g. "agent_0b6f3c2e-6d1a-4f2b-9c47-2e8a5d1f7a30" */ agent:string;/** Resource kind marker, always studio.reviewer for this shape. e.g. "studio.reviewer" */ object:string;/** Identifier of the work this roster belongs to; a reviewer is on one work's roster and has no address outside it. e.g. "wk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ work:string;/** Kind this reviewer reviews as on this roster, which decides which rounds ask it and what it is asked for. e.g. "audience" */ kind:"expert"|"audience";/** Display name of the reviewer agent, such as 宝妈, shown where a person reads the roster. e.g. "宝妈" */ name:string}>;/** Cursor for the next page, empty when this was the last one; pass it back as page_token unchanged. e.g. "" */ next_page_token?:string}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| 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. |
| page_size | query | number | 否 | How many items this page returns, 1 to 100; omitted uses the service default. Treat the answer as one page, not the whole set, and keep following next_page_token while it is present. |
| page_token | query | string | 否 | Cursor from the previous answer’s next_page_token; it is opaque, so pass it back unchanged and never build one from an id or an offset. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | One page of this work’s reviewers with their kinds and display names, and the cursor for the next page. |
| 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. |