Add photo to album

Add one of your photos to an album.

POST https://cotlet.dev/api/v1/flickr/albums/{album_id}/photos/{photo_id}/to-album

write

Adds one of your photos to an album. The photo stays in your photostream and in its other albums. add_photo_to_album runs without asking first: it reaches nobody new and remove_photo_from_album undoes it. An album link shows the photo to anyone who has it, so check privacy for non-public photos.

Parameters

Parameters: add_photo_to_album
NameTypeDescription
album_id string required string Album ID from list_albums.
photo_id string required string Photo ID from list_photos.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/flickr/albums/72177720330012345/photos/53917620011/to-album \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("flickr", "add_photo_to_album", {"album_id":"72177720330012345","photo_id":"53917620011"})
Node.js
const result = await cotlet.call('flickr', 'add_photo_to_album', {"album_id":"72177720330012345","photo_id":"53917620011"});
CLI
cotlet call flickr add_photo_to_album --data '{"album_id":"72177720330012345","photo_id":"53917620011"}'

Example response

JSON

{
  "album_id": "72177720330012345",
  "album_title": "Lisbon 2026",
  "photo_id": "53917620011",
  "photos_in_album": 42,
  "status": "added"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.