PATCH: Update Token (ERC-1155)

Tokens can be updated to have new prices or total supplies.

📘

Total supply must be more than or equal to the current supply (minted) on the contract

https://api.hypermint.com/v1/nft-contract/:contractId/token/:tokenId

Update ERC-1155 Token Price, Supply, or Max Per Transaction

Token id in the request is the integer token id on the network found in the UI or returns as part of contract information/when adding new tokens.

Parameters

Header

ParameterDescription
HM_ACCESS_KEYHyperMint Access Key
HM_ACCESS_KEY_SECRETHyperMint Access Key Secret

Body

ParameterTypeRequiredDescription
priceNumberYPrice of the token
totalSupplyNumberYTotal supply of the token
maxPerTransactionNumberYMax allowed by a wallet to purchase per transaction

Response

CodeMeaning
🟢 200: OKIf the contract has been deployed, an interactionId will be returned which allows you to check the status of the request.
🟠 404: Not FoundContract does not exist or you don't have permission
🟠 400: Bad RequestThe contract has been disabled by an administrator
🟠 400: Bad RequestThe token that is requested for updating does not exist
interface ContractInteractionResponse {
    interactionId?: string;
}

📘

See GET Interaction for a list of interaction types which are used and how to check the status if needed.

Feedback

Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.