v64

OpenAPI 3.1.0raw.githubusercontent.com2026-08-016280256.4 KB
libraries

Restore a library from trash

Restores a previously-trashed library so it reappears in default list/search results. Works as long as the library row still exists — once get_library returns 404 the row is gone and restore is no longer possible. If the background drain has already started purging assets, restore succeeds but recovers only the assets the drain hasn't gotten to yet.

Pairs with trash_library. To restore individual trashed assets within an untrashed library, use restore_assets instead.

post/api/libraries/{library_id}/restore

Path parameters

library_idstring required

Library ID (with lib_ prefix) of the trashed library to restore.

Library ID (with lib_ prefix) of the trashed library to restore.

Response

Successful Response

idstring required

Unique library identifier with 'lib_' prefix

namestring required

Display name of the library

descriptionstring nullable

Optional description text for the library

user_idstring required

ID of the user who owns this library

asset_countinteger required

Total number of assets in this library

storage_used_bytesinteger required

Bytes of assets currently stored in this library

storage_limit_bytesinteger nullable

Maximum bytes this library may store, or null if no per-library limit applies

created_atstring date-time required

When this library was created

updated_atstring date-time required

When this library was last updated