Skip to main content
POST
Restore an album from trash

Authorizations

Authorization
string
header
required

Gumnut API key (apikey_...) sent as a Bearer token in the Authorization header. Create and manage keys in the Gumnut app, or with the API key endpoints while signed in to it.

Path Parameters

album_id
string
required

Album ID (with album_ prefix) of the album to restore.

Response

Successful Response

Represents a collection of assets organized by the user.

id
string
required

Unique album identifier with 'album_' prefix

name
string
required

Display name of the album. Names supplied as text on create or update are trimmed and must not be blank.

asset_count
integer
required

Total number of assets in this album

created_at
string<date-time>
required

When this album was created

updated_at
string<date-time>
required

When this album was last updated

description
string | null

Optional description text for the album

album_cover_asset_id
string | null

ID of the asset displayed as the album cover. May be a server-selected default when the album has no explicit cover set, or null when the album has no live assets.

asset_urls
Asset Urls · object | null

Asset variants for the album cover: 'thumbnail'

start_date
string<date-time> | null

The oldest asset date (local_datetime) in the album, or null if empty

end_date
string<date-time> | null

The newest asset date (local_datetime) in the album, or null if empty

trashed_at
string<date-time> | null

When this album was moved to trash (ISO 8601, UTC). null for live albums. Albums in trash are excluded from default list results, keep their assets, and are permanently deleted after the configured retention window.