Sign in

Remove media items from album

documented

Removes one or more app created media items from a specified app created album.

POST /v1/albums/{albumId}:batchRemoveMediaItemsAlbumsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://photoslibrary.googleapis.com/v1/albums/{{$album_id}}:batchRemoveMediaItems" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"mediaItemIds": ["{{$media_item_id_1}}","{{$media_item_id_2}}","{{$media_item_id_3}}","{{$media_item_id_4}}","{{$media_item_id_5}}"]}' \
  # Source: Google Photos Library API docs — endpoint: https://photoslibrary.googleapis.com/v1/albums/{albumId}:batchRemoveMediaItems (body: {"mediaItemIds": [...]}, requires OAuth scope https://www.googleapis.com/auth/photoslibrary)