This mutation updates the token token attributes and metadata of the NFT token.
Sample mutation
mutation updateTokenDraft($token: TokenDraft!) {
updateTokenDraft(token: $token)
}
Sample Variable
{
"token": {
"tokenId": "37c059b3-a2da-4138-a422-2ca014f40d90",
"name": "LOPS",
"description": "IIOPS",
"editions": 1,
"assetId": "788daec3-625d-4170-b147-f459614e8088",
"metadataJSON": "{\"name\":\"LOPS\",\"description\":\"IIOPS\",\"image\":\"https://storage.googleapis.com/mojito-dev-public/organizations/8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e/images/ab868fa0-ed4a-4c3b-9022-da4591e9fc1e.jpeg?z=1\",\"attributes\":[{\"trait_type\":\"KIND\",\"value\":\"marine\"}]}",
"thumbnailImageCdnURL": ""
}
}
Sample Response
{
"data": {
"updateTokenDraft": "Token draft was updated"
}
}
Arguments
Name | Type | Description |
---|---|---|
tokenId | UUID | The NFT Token ID . |
name | String | The Name of the NFT . |
description | String | The Description of the NFT . |
editions | Int | The Editions of the NFT . |
assetId | UUID | The asset ID |
metadataJson | String | The Metadata of the NFT |
thumbnailImageCdnUrl | String | The ThumbnailImage CDN url . |