Switch an Item's Primary Image
Last updated
Last updated
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.
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
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Remember, imageIndex
starts at 0 and not 1. Therefore the highest imageIndex
is imageCount - 1
apiKey*
String
Your API key
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)