PATCH: Update Contract Metadata URLs

Sets the metadata URLs on the contract.

Can be used to create blind drops (aka a "reveal") where the token information is revealed to the public after a certain period of time simply by updating the metadata url when NFTs are ready to be revealed.

📘

Changes to deployed contracts will be broadcasted immediately

https://api.hypermint.com/v1/nft-contract/:contractId/update-metadata-urls

Update Contract Metadata URLs

Parameters

Header

ParameterDescription
HM_ACCESS_KEYHyperMint Access Key
HM_ACCESS_KEY_SECRETHyperMint Access Key Secret

Body

ParameterTypeRequiredDescription
contractMetadataUrlstringYURL for contract metadata
tokenMetadataUrlstringYURL for token metadata

Response

CodeMeaning
🟢 200: OKReturns with an interaction ID for the deployed contract
🟠 404: Not FoundContract does not exist or you don't have permission
🟠 400: Bad RequestThe contract has been disabled by an administrator
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.