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.
Signature
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}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| work | path | string | yes | 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. |
| draft | path | string | yes | 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. |
| key | path | string | yes | Your name for the thread inside this work, such as 改造告示 or the-photo; the same key updates the same foreshadow. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The foreshadow is gone. |
| 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 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. |
| 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. |