Edit NFTs
Update the metadata of an NFT on IPFS
Editing an NFT
Some aspects of the blockchain are static and can't be changed, fortunately we can change individual NFT information.
Why would you need to edit NFT metadata?
- Mistakes with original metadata
- Changing whether the NFT is stored on-chain or off-chain
- Add some extra information or traits to the metadata
- Dynamic NFTs
NFT Edit operation is yet not supported for Solana Compressed NFTs.
If you need to edit any metadata on the NFT you can do so easily via the Minting API Edit NFT route.
Simply pass the new desired metadata as seen below and await an http 204 response code.
curl --request PATCH \
--url https://staging.crossmint.com/api/2022-06-09/collections/YOUR_COLLECTION_ID/nfts/YOUR_NFT_ID \
--header 'content-type: application/json' \
--data '
{
"reuploadLinkedFiles": true,
"metadata": {
"name": "My edited Mint API NFT",
"image": "https://www.crossmint.com/assets/crossmint/logo.png",
"description": "My NFT edited via the mint API!",
"animation_url": "string",
"attributes": [
{
"display_type": "boost_number",
"trait_type": "editability",
"value": "10"
}
]
}
}
'
Updated 21 days ago