A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm trying to find out how to upload image files on Files under content using API or GraphQL.
I asked Claunde2 and it says;
To upload an image file to the Files section in Shopify using the REST Admin API, you would use the following endpoint:
POST /admin/api/2023-10/themes/<theme_id>/assets.json
But it didn't work.
Please tell me endpoint or GraphQL to do.
Thanks.
Solved! Go to the solution
This is an accepted solution.
Hey @heyuuuuu
You'll want to use the FileCreate mutation to add files here.
Scott | Developer Advocate @ Shopify
This is an accepted solution.
Hey @heyuuuuu
You'll want to use the FileCreate mutation to add files here.
Scott | Developer Advocate @ Shopify