Remove photo from album

Take a photo out of an album without deleting it.

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

write

Removes one photo from one album. The photo stays in your photostream and in its other albums. remove_photo_from_album runs without asking first: nothing is deleted and add_photo_to_album undoes it.

Parameters

Parameters: remove_photo_from_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 DELETE https://cotlet.dev/api/v1/flickr/albums/album_8c41d2/photos/photo_8c41d2/from-album \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("flickr", "remove_photo_from_album", {"album_id":"album_8c41d2","photo_id":"photo_8c41d2"})
Node.js
const result = await cotlet.call('flickr', 'remove_photo_from_album', {"album_id":"album_8c41d2","photo_id":"photo_8c41d2"});
CLI
cotlet call flickr remove_photo_from_album --data '{"album_id":"album_8c41d2","photo_id":"photo_8c41d2"}'

Example response

JSON

{
  "album_id": "72177720330012345",
  "photo_id": "53917620011",
  "photos_in_album": 41,
  "status": "removed"
}

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.