Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update listing image ID #21

Merged
merged 1 commit into from
Aug 10, 2024
Merged

Add update listing image ID #21

merged 1 commit into from
Aug 10, 2024

Conversation

darrelbelvin
Copy link
Contributor

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.

@anitabyte anitabyte merged commit 1a0f2c0 into anitabyte:main Aug 10, 2024
@anitabyte
Copy link
Owner

Sorry for the delay - been a bit recently. But thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants