Delete Asset Library Entry
Changed onTake one of the customer's uploads or generated works out of their library (a soft hide; the file stays).
A generated work leaves on its own (a song comes in two; keeping one is fine), and its make leaves with its last work. A whole make can still leave through /tasks/{task_id}/library-entry.
With permanent=true, only for the customer's own uploads, the file is deleted for good and outcome says what became of it: deleted, or kept with kept_reasons when it stays (a generated work or a shared file stays exactly as it is; a file an avatar, a voice or a singer still holds leaves the Materials list and stays). Errors: 400 invalid_request "Generated works are deleted through their task" for a generated work; 404 artifact_not_found for a file that is not the customer's upload; 409 conflict "The file is in use by a task that is still in progress"; 503 internal_error "The file could not be deleted right now; try again later" (nothing was changed).
Request
- Base URLhttps://api.beatra.ai (the document declares no server; this is the origin it was published from)
- Authnone declared
Path parameters
Query parameters
Delete one of the customer's own uploads for good (its bytes, thumbnails, covers and public addresses) instead of only taking it out of the library.
Headers
Response
Successful Response
An upload or one generated work taken out of the library: without permanent, the file and its URL stay.
With permanent=true on an upload, outcome says what became of the file: deleted (its bytes, its derivatives and their public addresses are removed or queued for removal) or kept (kept_reasons says why: a generated work or a share link keeps it exactly as it was; an avatar, a voice or a singer that still holds it only takes it out of the Materials list). outcome and kept_reasons are left out of the answer when the request was not permanent, so that answer is exactly what it has always been.
Changes
- info
added the new optional
queryrequest parameterpermanent - info
added the optional property
kept_reasonsto the response with the status - info
added the optional property
outcometo the response with the status
- info