Admin API/Products and collections/Mutations
productVideoCreate
mutationAdds a short video to a product from a stagedUploadsCreate (resource VIDEO) resourceUrl. Up to 3 per product.
Returns ProductVideoPayload!
mutation ProductVideoCreate($originalSource: String!, $productId: ID!) {
productVideoCreate(originalSource: $originalSource, productId: $productId) {
video {
id
createdAt
alt
bytes
mimeType
url
}
userErrors {
code
message
field
}
}
}
# Variables
{
"originalSource": "",
"productId": "gid://ostorya/Product/0f8c5b1e-…"
}Arguments
Payload
- userErrors[UserError!]!required
- videoProductVideo