跳转到内容
EN

Delete a reference entry

Code Mode: praxis.studio.codexes.entries.delete

HTTP: DELETE /studio/v1/codexes/{codex}/entries/{entry}

Delete one entry from a library, which also removes the mentions and the links that pointed at it. Units that claimed it keep their text; only the reference goes away. This cannot be undone, so confirm the name of the entry before deleting it, and prefer changing its tracking setting to never when it should stop reaching writers but stay recorded.

签名

praxis.studio.codexes.entries.delete(args:{path:{/** e.g. "cdx_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ codex:string;/** e.g. "乌江日报" */ entry:string}}):Promise<{/** Always true, which is what tells a caller the deletion landed rather than that the resource was already missing. */ deleted:boolean}>;

参数

名称位置类型必填说明
codexpathstring是Reference library being addressed, given by its cdx_ identifier; a library has no name-based address, so read the library list first when only the name is known.
entrypathstring是Entry being addressed, by its name inside this library or by its ent_ identifier; a name containing a slash is passed by identifier instead.

响应

状态码内容类型说明
200application/jsonThe deletion confirmation; the entry and its aliases are gone from the library.
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/jsonCODEX_NOT_FOUND or ENTRY_NOT_FOUND means the library or the entry name inside it names nothing reachable; read the entry list and use a name it returns, or pass the entry identifier.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.