mallow docs

Edit metadata

POST
/v2/tx/nft/edit

Builds a metadata update for an existing asset, signed by authority, which must hold its update authority.

Replaces uri and the on-chain name, sellerFeeBasisPoints and creators. Fields under extendedMetadata are stored by mallow, not on-chain. For collection and maxSupply, omit the field to leave it unchanged or send null to clear it.

For a cnft, authority must be the collection's update authority, or the tree creator when it has no verified collection; owning the asset is not enough. cnft-v2 is not supported.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Updates an existing asset's metadata. collection and maxSupply treat an omitted field as 'leave unchanged' and an explicit null as 'clear'.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/tx/nft/edit" \  -H "Content-Type: application/json" \  -d '{    "authority": "string",    "asset": "string",    "uri": "string",    "nftMetadata": {      "name": "string",      "sellerFeeBasisPoints": 0    },    "tokenStandard": "nft"  }'
{  "result": {    "tx": "string",    "setupTx": "string"  }}