Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Etsy API endpoint 'uploadListingImage' allows for assigning a previously uploaded listing_image_id, and re-using images is allowed.
This pull request adds a new request type, UpdateListingImageIDRequest, that takes an existing image ID instead of a file and uses that ID to update an image.
My use case was replacing an image that was identical over several hundred listings. I didn't want to upload it several hundred times though. After uploading it once and getting the listing_image_id, linking it to all the rest of the listings took the API just a few seconds. This is also advantageous for viewing performance as the image shares the same URL across listings and visits to subsequent listings can pull it from the cache.