跳转到内容
EN

Delete work

Code Mode: praxis.media.libraries.works.delete

HTTP: DELETE /media/v1/libraries/{library_id}/works/{work_id}

Delete a work. Only the work goes: every asset it named stays in the library unchanged.

签名

praxis.media.libraries.works.delete(args:{path:{library_id:string;work_id:string}}):Promise<{/** Id of the deleted work. */ id:string;/** Always work. */ object:"work";/** Always true: the work is deleted; every asset it named is unchanged. */ deleted:true}>;

参数

名称位置类型必填说明
library_idpathstring是Library ID returned by creation.
work_idpathstring是Work id (wrk_…) returned by creation or listing.

响应

状态码内容类型说明
200application/jsonSuccessful response.
400application/jsonA selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
402application/jsonRequest failed; see the error code reference.
403application/jsonThis credential has read-only access to the library; use a write-capable binding for mutations.
404application/jsonThe library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
409application/jsonRequest failed; see the error code reference.
413application/jsonThe file exceeds an input limit; provide a smaller source file.
415application/jsonThis media format is unsupported; provide a supported format.
422application/jsonRequest failed; see the error code reference.
429application/jsonA rate limit was reached; wait before retrying.
501application/jsonThe requested operation is unsupported; choose a supported method.
502application/jsonRequest failed; see the error code reference.
503application/jsonHistorical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.