We’re using the REST Admin API from an on-premise Win32 application to create Products in a Shopify store. We’re not using any SDK at this time, we’re making REST calls with the JSON payloads as documented here.
https://shopify.dev/api/admin-rest/2022-10/resources/product
We cannot see how to create Product Categories via the REST API, nor how to set the Product Category for a Product.
It seems the product category is set automatically when we POST to the xxxx.myshopify.com/admin/api/2022-10/products.json endpoint and assign an image. Are we supposed to rely on the automatic assignment? If so, what about products that have no image?
