Liquid, JavaScript, themes, sales channels
Im trying to retrieve the upload ID of video's / pictures that I upload, this is essential in order to delete or alter the media. I'm not a graphQL expert and don't know where to search. I've checked serveral types of documentation but can't find anything concrete. For reference I've added to the code below.
{"data":{
},
"query": "\tmutation productCreateMedia($productId: ID!, $media: [CreateMediaInput!]!) {\n \t\tproductCreateMedia(productId: $productId, media: $media) {\n \t\tmedia {\n \t\t\talt\n \t\t}\n \t\tmediaUserErrors {\n \t\t\tcode\n \t\t\tfield\n \t\t\tmessage\n \t\t}\n \t\tproduct {\n \t\t\tid\n \t\t}\n \t\t}\n\t}\n",
"variables": {
"productId": "gid://shopify/Product/5070126678155",
"media": [{
"originalSource": "https://www.youtube.com/watch?v=JQ15iAAX1gI",
"mediaContentType": "EXTERNAL_VIDEO",
"alt": "nicename"
}]
},
"operationName": "productCreateMedia"
}
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024