curl --request POST \
--url https://api.example.com/api/libraries/{library_id}/restore{
"id": "<string>",
"name": "<string>",
"user_id": "<string>",
"asset_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}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.
curl --request POST \
--url https://api.example.com/api/libraries/{library_id}/restore{
"id": "<string>",
"name": "<string>",
"user_id": "<string>",
"asset_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.gumnut.ai/llms.txt
Use this file to discover all available pages before exploring further.
Library ID (with lib_ prefix) of the trashed library to restore.
Successful Response
Represents a user's photo library.
Unique library identifier with 'lib_' prefix
Display name of the library
ID of the user who owns this library
Total number of assets in this library
When this library was created
When this library was last updated
Optional description text for the library