跳转到内容
EN

Delete a rendition

Code Mode: praxis.studio.works.renditions.delete

HTTP: DELETE /studio/v1/works/{work}/renditions/{rendition}

Delete a rendition and stop listing it. The draft it was built from is untouched, and a new rendition can be created from it at any time. Files already downloaded from an earlier export are not affected. Use it to clear a failed or abandoned rendition; to refresh one, call the render operation instead.

签名

praxis.studio.works.renditions.delete(args:{path:{/** e.g. "wu-gang" */ work:string;/** e.g. "rnd_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ rendition: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.
renditionpathstring是Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.

响应

状态码内容类型说明
200application/jsonConfirmation that the rendition was deleted.
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/jsonRENDITION_NOT_FOUND or WORK_NOT_FOUND means the rendition or its work is not reachable; use the rnd_ identifier from the rendition list and the work slug, since a deleted rendition never returns.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.