Update token type metadata

PUT {{nft-api-endpoint}}/api/apps/:applicationId/contracts/:contractId/token-types/:tokenTypeId/metadata

Endpoint that allows you to update the metadata of a token type (an NFT template)

Note this endpoint allows you to update the metadata, some attribute are defined on the NFT contract and therefor not updatable.

Here is a list of the attributes that can not be updated:

  • fungible
  • burnable
  • maxSupply

Request Body

{"name"=>"Chuck (Updated)", "description"=>"Chuck is a Male Tall Chicken (Updated)", "image"=>"https://previews.123rf.com/images/bankrx/bankrx1810/bankrx181000576/110633429-grunge-green-updated-word-with-star-icon-round-rubber-seal-stamp-on-white-background.jpg", "backgroundColor"=>"#021200", "externalUrl"=>"https://previews.123rf.com/images/bankrx/bankrx1810/bankrx181000576/110633429-grunge-green-updated-word-with-star-icon-round-rubber-seal-stamp-on-white-background.jpg", "animationUrls"=>[{"type"=>"video", "value"=>"https://img.arkane.network/marketing/SpaceChickens/space_chickens_trailer.mp4"}], "attributes"=>[{"type"=>"property", "name"=>"Talent", "value"=>"Leadership"}, {"type"=>"property", "name"=>"Allergic", "value"=>"Monstonuts"}, {"type"=>"property", "name"=>"Hobby", "value"=>"Scouts"}, {"type"=>"stat", "name"=>"Cool", "value"=>"9", "maxValue"=>"10"}, {"type"=>"stat", "name"=>"Daring", "value"=>"8", "maxValue"=>"10"}, {"type"=>"stat", "name"=>"Noise", "value"=>"8", "maxValue"=>"10"}, {"type"=>"stat", "name"=>"Age", "value"=>"3"}]}