Move a library to trash
Changed onMoves the library and all its contents into the trash. The library becomes inaccessible by default and can be fully restored within 90 days by calling restore_library. After 90 days the library's assets are gradually purged in the background; until the library row itself is removed, restore still works but recovers only the assets not yet purged.
Idempotent — a second call on an already-trashed library no-ops. To trash individual assets without trashing the whole library, use trash_assets instead.
Returns 409 if this is the user's last live library — every user keeps at least one. Retrying does not clear it; create another library first.
Request
- Base URL: https://api.gumnut.ai
- URL: https://api.gumnut.ai/api/libraries/{library_id}/trash
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
Library ID (with lib_ prefix) of the library to trash.
Response
Successful Response
Empty acknowledgment returned when an operation succeeds.
Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- breaking
response property
detaillist-of-types was widened by adding typesstringto media typeapplication/jsonof response422 - info
the response property
became required for the status
- breaking