Can you write to Product Category field via API?

Hello

Does Shopify allow write access via API to the “Product category” field within a product? We are trying to sync with our PIM system however we can only write to the “Product type” field not the “product category”. We’d like to use the predefined choices listed in https://help.shopify.com/txt/product_taxonomy/en.txt as our options for this field.

Thank you.

Hi There, not sure about the rest api, but the graphql api has the ability to add the product category to the productInput payload.

https://shopify.dev/api/admin-graphql/2023-01/input-objects/ProductInput

Cheers,

Gary

Thanks, I’ll double check with our developers and see if this will work. If so I will accept as solution.