Sign in

Batch create media items

documented

Creates one or more media items in a user's Google Photos library.

POST /v1/mediaItems:batchCreateMediaItemsno 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/mediaItems:batchCreate" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"albumId": "{{$albumId}}", "newMediaItems": [ { "description": "{{$description}}", "simpleMediaItem": { "uploadToken": "{{$uploadToken}}", "fileName": "{{$filename}}" } } ], "albumPosition": { "position": "{{$albumPosition_position}}", "relativeMediaItemId": "{{$albumPosition_relativeMediaItemId}}" } }'