Adds multiple photos to an artist’s gallery in a batch transaction
cURL
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>" ] } ] }
50
Show child attributes
Photos added successfully
Whether the operation was successful
Number of photos successfully added
Array of added gallery photos