This mutation uploads the Dynamic NFT asset to the storage Bucket instead of Arweave.
Sample Query
mutation uploadDynamicNftAsset($tokenId: UUID1!,$orgId:UUID1,$file:Upload,$name:String)
{
uploadDynamicNftAsset(tokenId: $tokenId, orgId: $orgId, file:$file, name:$name)
}
Sample Variable
{
“orgId”: "8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e",
“tokenId”: "d4c9c416-587c-48e6-a214-ce09c59e88d6",
“file”: "NULL",
“name”: "whiskey"
}
Sample Response
{
"data": {
"uploadDynamicNftAsset": {
"cdnUrl": "https://storage.googleapis.com/mojito-dev-public/nft/d-nft/images/e000b7c8-0f8e-468a-a667-a6a7b62e88db.jpg?z=1",
"assetID": "08524ce8-7b37-4d2c-8df0-851a0f9f4b44"
}
}
}
Arguments
Name | Type | Description |
---|---|---|
tokenId | UUID | The NFT Token ID . |
name | String | The Name of the NFT . |
orgId | UUID | The Organisation ID |
file | FileUpload | The File Upload |
Fields
Name | Type | Description |
---|---|---|
cdnUrl | String | The Asset CdnUrl |
assetID | UUID | The Asset ID |