🆕Add a New Image

This method allows you to append a new image to an existing item at a specified index and optionally set the newly appended image as the primary image.

Usage in your script

const updateItem = await alturaItem.appendImage(IMAGE_URL, IMAGE_INDEX, SET_AS_PRIMARY)

SET_AS_PRIMARY is an optional Boolean value. If set true, the newly appended image is set as the item's primary image.

Parameters

Last updated