updateTokenDraft

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

NameTypeDescription
tokenIdUUIDThe NFT Token ID.
nameStringThe Name of the NFT.
descriptionStringThe Description of the NFT.
editionsIntThe Editions of the NFT.
assetIdUUIDThe asset ID
metadataJsonStringThe Metadata of the NFT
thumbnailImageCdnUrlStringThe ThumbnailImage CDN url .