Skip to main content
POST
/
api
/
libraries
Create a new library
curl --request POST \
  --url https://api.example.com/api/libraries \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "user_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>"
}

Body

application/json
name
string
required
description
string | null

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

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