Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
First, please search through existing issues to ensure that the bug has not already been reported. You can start the search here:
If the issue has already been reported, you can click the star next to the issue number to subscribe and receive updates. We prioritize responding to the issues with the most stars. You can also comment on the issue to provide any details of your experience with it.
If your issue has not been reported, please provide all of the following:
-----------------------------------------------------------------------------------------------------------------------------
A short description of the issue:
If the user is the owner of a shared album and batchCreate is called to add media items to the shared album, the position field is ignored, and all media items are added to the end of the album (as per the default if position is not set)
Your project number from the Google Developers Console:
N/A
The calls to the API that lead to the error. Include the sequence of calls, including request headers and body.
Do not include any personal information, authentication secrets, media item or album IDs.
curl -H "Content-type: application/json"
-H "Authorization: Bearer $OAUTH_TOKEN"
-X POST \
-d "{album_id:\"$ALBUM\", new_media_items:[{simple_media_item: {upload_token:\"$UPLOAD_TOKEN1\"}}], albumPosition: {position: \"AFTER_MEDIA_ITEM\", relative_media_item_id: \"$MEDIA_ITEM\"}}" \
$LIB_URL/mediaItems:batchCreate
What steps will reproduce the problem?
1. Call batchCreate on a shared album as the owner of the album. Add in a valid position field.
What is the expected output? What do you see instead? If you see error messages, please provide them.
Expect to see the newly created media items after the specified media item ($MEDIA_ITEM in the sample above)
Currently the newly created media item is just added to the end of the album.
Please provide any additional information below.