跳转到内容
EN

Drop a foreshadow

Code Mode: praxis.studio.works.drafts.foreshadows.delete

HTTP: DELETE /studio/v1/works/{work}/drafts/{draft}/foreshadows/{key}

Remove a thread that is no longer in the story. Deleting a key that does not exist answers the same as deleting one that did.

签名

praxis.studio.works.drafts.foreshadows.delete(args:{path:{/** e.g. "wu-gang" */ work:string;/** e.g. "novel" */ draft:string;/** e.g. "改造告示" */ key:string}}):Promise<{/** Always true, which is what tells a caller the deletion landed rather than that the resource was already missing. */ deleted:boolean}>;

参数

名称位置类型必填说明
workpathstring是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.
draftpathstring是Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value.
keypathstring是Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow.

响应

状态码内容类型说明
200application/jsonThe foreshadow is gone.
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 or DRAFT_NOT_FOUND means the work or the draft inside it is not reachable; use the slug and the draft key from the lists, or resolve a loose name first. A draft renamed earlier still answers under its previous key.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.