Last updated 2 years ago
Use this method to update an item's primary image.
const updatedItem = await alturaItem.updatePrimaryImage(IMAGE_INDEX);
const updatedItem IAlturaItem = await alturaItem.updatePrimaryImage(IMAGE_INDEX);
Remember, imageIndex starts at 0 and not 1. Therefore the highest imageIndex is imageCount - 1
Remember, imageIndex
imageIndex
imageCount - 1
Integer
Yes
The index of the image you wish to change to