Skip to main content
PATCH
/
api
/
libraries
/
{library_id}
Rename a library or change its description
curl --request PATCH \
  --url https://api.example.com/api/libraries/{library_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "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.

Path Parameters

library_id
string
required

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

Body

application/json
name
string | null

New display name for the library. Omit to leave unchanged.

description
string | null

New free-form description for the library. Omit to leave unchanged.

Response

Successful Response

Represents a user's photo library.

id
string
required

Unique library identifier with 'lib_' prefix

name
string
required

Display name of the library

user_id
string
required

ID of the user who owns this library

asset_count
integer
required

Total number of assets in this library

created_at
string<date-time>
required

When this library was created

updated_at
string<date-time>
required

When this library was last updated

description
string | null

Optional description text for the library