FROM CACHE - en_header

Reference to a URL when creating file_reference metafield?

Shopify Partner
4 0 2

Hi there.


We're working on a solution that allows uploading images into metafields, however, the documentation is somewhat limited in terms of understanding what would actually be possible with the metafields api. 


Our hope here is that we'd be able to send over an image URL from a DAM or CDN, and have this 1) upload the file to Shopify and 2) reference this file.


Is the only possible way to achieve this to upload using the files API, get the gid and then reference that gid when we create the metafield or did anyone succeed in sending over an actual image URL somehow?

Replies 0 (0)