Skip to main content
POST
/
gallery
/
add-photo
Add Gallery Photo
curl --request POST \
  --url http://localhost:3000/api/gallery/add-photo \
  --header 'Content-Type: application/json' \
  --data '
{
  "source": "instagram",
  "url": "<string>",
  "fileId": "<string>",
  "thumbnailUrl": "<string>",
  "tags": [
    "<string>"
  ],
  "sourceData": {}
}
'
{
  "success": true,
  "photo": {}
}

Body

application/json
source
enum<string>
required

Source of the photo

Available options:
instagram,
upload,
url
url
string
required

URL of the photo

fileId
string
required

Unique file identifier

thumbnailUrl
string

Thumbnail URL

tags
string[]

Photo tags

sourceData
object

Additional source-specific metadata

Response

Photo added successfully

success
boolean
photo
object

The added photo