Error on GraphQL mutation

New Member
7 0 0

So I finally figured out how to upload a productvideo by way of graphQL (hurray). But I keep getting back the error that my URL string is incorrect. I tried a bunch of variations on the URL but it doesnt to work. I've added the call and response to elaborate, thank you in advance.

The call:

mutation {
    product(id: 34283482513547)
    embeddedUrl: "www.youtube.com/watch?v=noKpc8fo-R0"
}

The Response: 

{
"error": "783: unexpected token at 'mutation {\n\tproduct(id: 34283482513547)\n\tembeddedUrl: \"www.youtube.com/watch?v=noKpc8fo-R0\"\n}'"
}

0 Likes