Remove a reviewer from a work
Code Mode: praxis.studio.works.reviewers.delete
HTTP: DELETE /studio/v1/works/{work}/reviewers/{agent}
Take one agent off the work’s reviewer roster, so rounds sent from now on no longer ask it. What it has already judged is kept: the rounds it took part in stay readable with their reports,. A person makes this change, and an agent calling it is refused with PERMISSION_DENIED. An agent that is not on this work’s roster answers REVIEWER_NOT_FOUND.
签名
praxis.studio.works.reviewers.delete(args:{path:{/** e.g. "wu-gang" */ work:string;/** e.g. "agent_0b6f3c2e-6d1a-4f2b-9c47-2e8a5d1f7a30" */ agent:string}}):Promise<{/** Always true, which is what tells a caller the deletion landed rather than that the resource was already missing. */ deleted:boolean}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| 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. |
| agent | path | string | 是 | Reviewer being addressed, by the agent value this work’s reviewer list returns for it; a reviewer is a member of one work’s roster, so it has no address outside that work. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The reviewer is off the roster; rounds already sent are unchanged. |
| 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. |
| 403 | application/json | PERMISSION_DENIED means the caller is not a person of this organization: the reviewer roster, the review settings and cancelling a round are the owner’s decisions and an agent cannot make them. Report what needs to change to the person who owns the work instead of repeating the call. |
| 404 | application/json | REVIEWER_NOT_FOUND means that agent is not on this work’s reviewer roster; read the work’s reviewer list and pass one of the agent values it returns, since another work’s reviewer answers the same way. |
| 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. |