UpdateDynamicNFTSpecificMetadata

Mutation to update the specific metadata of the given Dynamic NFT.

Sample Query

mutation UpdateDynamicNFTSpecificMetadata($input: MetadataInput!) 
 {  
   UpdateDynamicNFTSpecificMetadata( input: $input)
 }

Sample Variable

Metadata fields update

{
  “contractAddress”: "0x60e5f0bb24a8aef75053440b5c281ce370671797",
  “tokenId”: 1,
  "metadataJSON":{
      "name":"KPM",
      "description":"My claim token",
      "image":"https://storage.googleapis.com/mojito-stg-public/nft/0x4d3c7e3e647725495b7f077e36e632b6fc5a5123/images/541f7d7c-4c3a-4433-95f0-0a15b40bdc5a.jpg"
    }
}

Metadata attribute update

{
  “contractAddress”: "0x60e5f0bb24a8aef75053440b5c281ce370671797",
  “tokenId”: 1,
  "metadataJSON":{
      "attributes":[{
        "trait_type":"Redeem",
        "value":"false"
      },{
        "trait_type":"Figure",
        "value":"ape"
      }]
    }
}

Remove metadata attributes

{
  “contractAddress”: "0x60e5f0bb24a8aef75053440b5c281ce370671797",
  “tokenId”: 1,
  "removeAttributes":["Redeem","Figure"]
}

Remove metadata fields

{
  “contractAddress”: "0x60e5f0bb24a8aef75053440b5c281ce370671797",
  “tokenId”: 1,
  "removeMetadataFields":["name","description"]
}

Sample Response


{
    "data":"metaData has been updated successfully"
}

Arguments

NameTypeDescription
metadataInputMetadataInputThe Dynamic NFT metadata Input.