GraphQL Admin API - Trouble with uploading custom 3D Model

Highlighted
New Member
1 0 0

Currently I am trying to work with the GraphQL Admin API to upload a custom 3D Model to a test development store. Documentation Here

 

I am having trouble understanding the correct formatted curl request where you upload the asset. There is examples for uploading a Video as well as an image, however there is no example in that section for uploading a 3D Model. Upload the asset documentation

 

So far in regards to the tutorial I have: 

- Created a development store enabled with "developer preview" 

- Generated the upload URL and parameters using the "generateStagedUploads" mutation example below:

Screen Shot 2020-04-02 at 3.51.28 PM.png

 

With the included variable describing my 3D Model I am staging, example below:

Screen Shot 2020-04-02 at 3.53.12 PM.png

 

- This returned me a response like below:

Screen Shot 2020-04-02 at 3.55.40 PM.png

 

 

The part where I am stuck on is how to format the above response into a curl request to upload my asset. In the documentation there is examples of how to do this for a video or image which make total sense based on their respective responses from the first step. However I am wondering how to make that in the case for a 3D Model?

 

The example on the docs for a video is below: 

Screen Shot 2020-04-02 at 3.57.36 PM.png

0 Likes
Highlighted
Shopify Partner
18 0 0

I also wanna to know. 

0 Likes