Hi, I’ve followed the docs exactly:
https://shopify.dev/docs/api/admin-graphql/2023-01/mutations/fileUpdate#examples-Update_an_image
I keep getting this error message:
Variable $files of type [FileUpdateInput!]! was provided invalid value for 0.originalSource (Field is not defined on FileUpdateInput)
Here’s the general code:
$files = [
"files" => [
"id" => $id,
"originalSource" => $url
]
];
$queryString = <<
Anybody know why it keeps saying **invalid value for 0.originalSource (Field is not defined on FileUpdateInput)??**
I have no problems adding new photos, and delete existing ones, I simply can't update existing photos with new image data (I am able to update the ALT text without issue).