I am unable to use productCreateMedia to set a GLB file on my product. I receive this error:
There were errors with the request: [{"field":["media","0","originalSource"],"message":"Invalid Model 3d url=https://cdn.shopify.com/3d/models/o/e38516a2d6824caa/watch.glb"}]
Invalid Model 3d url=https://cdn.shopify.com/3d/models/o/e38516a2d6824caa/watch.glb
The watch 3D Model comes from the Shopify examples, if you got to the url you can see it is a valid GLB file.
This is the GraphQL statement that is executing:
mutation {
productCreateMedia(productId: "gid://shopify/Product/9515810062616", media: [
{
mediaContentType: MODEL_3D,
originalSource: "https://cdn.shopify.com/3d/models/o/e38516a2d6824caa/watch.glb"
}
]
) {
media { id } mediaUserErrors { field message }
}
}
I honestly believe this to be a bug in the Shopify Admin GraphQL API. I have not had problems using productCreateMedia to add images.
Please help.