Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
The `createFile` mutation doesn't seem to accept it's documented input type for variable `$files`. I'm trying the exact code from the example documented here and I'm getting the following error message: `FileCreateInput isn't a defined input type (on $files)`.
Can someone confirm this is the case and is either a bug in the API or a wrong documentation? Thanks in advance!
The full query and variables: (FileUpdateInput in error message should be FileCreateInput, I tried both)
// Mutation query
mutation fileCreate($files: [FileCreateInput!]!) {
fileCreate(files: $files) {
files {
alt
createdAt
}
userErrors {
code
field
message
}
}
}
// Variables object
{
"files": [
{
"originalSource": "placeholder"
}
]
}
// Response
{"status":500,"error":{"message":"FileUpdateInput isn't a defined input type (on $files)"}}
Solved! Go to the solution
This is an accepted solution.
Nevermind, I now see this API was only just released in the lastest API version.
This is an accepted solution.
Nevermind, I now see this API was only just released in the lastest API version.
Have you succeeded to upload a Jason file with that?
User | RANK |
---|---|
5 | |
5 | |
5 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022