Skip to main content
POST
/
gallery
/
add-photos
Add Multiple Gallery Photos
curl --request POST \
  --url http://localhost:3000/api/gallery/add-photos \
  --header 'Content-Type: application/json' \
  --data '
{
  "photos": [
    {
      "source": "instagram",
      "url": "<string>",
      "fileId": "<string>",
      "thumbnailUrl": "<string>",
      "tags": [
        "<string>"
      ],
      "sourceData": {}
    }
  ]
}
'
{
  "success": true,
  "addedPhotos": 123,
  "photos": [
    {
      "id": "<string>",
      "artistId": "<string>",
      "artistName": "<string>",
      "url": "<string>",
      "source": "instagram",
      "order": 123,
      "uploadedAt": 123,
      "isVisible": true,
      "artistUsername": "<string>",
      "thumbnailUrl": "<string>",
      "sourceData": {
        "instagramId": "<string>",
        "permalink": "<string>",
        "caption": "<string>",
        "mediaType": "IMAGE",
        "urlRefreshedAt": 123,
        "originalFileName": "<string>",
        "fileSize": 123,
        "storageRef": "<string>",
        "originalUrl": "<string>"
      },
      "tags": [
        "<string>"
      ]
    }
  ]
}

Body

application/json
photos
object[]
required
Maximum array length: 50

Response

Photos added successfully

success
boolean
required

Whether the operation was successful

addedPhotos
number
required

Number of photos successfully added

photos
object[]
required

Array of added gallery photos