🪄Update an Item's Image

This endpoint allows you to change an item's image to one of the other images provided upon mint. This feature may be used to update an item's state (i.e., the image can reflect an item's wear, evolution, type, etc.)

Every item has an imageIndex property. This property represents the index of the selected image amongst all the provided images. Every item also has aimageCount property that represents the total number of uploaded images.

Update an item's primary image

Updates an item's primary image

POST https://api.alturanft.com/api/v2/item/update_primary_image

Takes an item's collection address, tokenId, the imageIndex you want to change to and your API key and updates the item's primary image

Query Parameters

Name
Type
Description

apiKey*

String

Your API key

Request Body

Name
Type
Description

address*

String

The item's collection address

tokenId*

Integer

The item's tokenId

imageIndex*

Integer

The index of the image you wish to change to

(index starts at 0)

{
    // Response
}

Remember, imageIndex starts at 0 and not 1. Therefore the highest imageIndex is imageCount - 1

Last updated