Getting 400 bad request REST admin API create custom collection

Highlighted
Tourist
7 0 0

Hi, 


I am trying to create a custom collection using the REST admin API and I am getting a 400 bad request when sending POST request to a dev store. I am developing on nodejs front end next js and backend koa js. Sending this request from the backend through public ngrok tunnel. 


Could use a little bit of help here since I cannot see whats going on from shopify's end. If there is a way to see logs from a dev store that could also work for me. 

Screen Shot 2019-12-08 at 1.19.20 AM.png

0 Likes
Shopify Partner
1153 133 200

What do you have in your collection object you are sending with the POST?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
Tourist
7 0 0
Sending image as data url
0 Likes
Shopify Partner
1153 133 200

Would you elaborate a little? Can you share the code that creates the collection object from your code snippet above?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes