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.
What do you have in your collection object you are sending with the POST?
Would you elaborate a little? Can you share the code that creates the collection object from your code snippet above?