跳转到内容
EN

Delete a writing style

Code Mode: praxis.studio.styles.delete

HTTP: DELETE /studio/v1/styles/{style}

Delete a style, which detaches it from every work and draft that used it; those units then stop receiving its samples and glossary in their context packs. This cannot be undone, so confirm the style identifier before deleting it, and read the work first when it is not certain which style it uses.

签名

praxis.studio.styles.delete(args:{path:{/** e.g. "sty_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ style:string}}):Promise<{/** Always true, which is what tells a caller the deletion landed rather than that the resource was already missing. */ deleted:boolean}>;

参数

名称位置类型必填说明
stylepathstring是Style being addressed, by its sty_ identifier; a style has no name-based address, so read the style list first when only the name is known.

响应

状态码内容类型说明
200application/jsonThe deletion confirmation; the style no longer exists for later attaches.
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/jsonSTYLE_NOT_FOUND means no style in this organization has that identifier; read the style list and pass one of its identifiers.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.