Products fall out of the collection when they are changed via the API

Products fall out of the collection when they are changed via the API

Andreas-apo
Shopify Partner
4 0 0

We have the problem that products that are manually assigned to a collection are dropped from the collection again after product synchronisation via the API. We assume this happens when the products undergo a change in the description via the API. The Shopify ID and the title remain the same.

Thank you very much for your support!

Replies 2 (2)

EcomGraduates
Shopify Partner
795 68 114

It sounds like the product synchronization via the API might be overwriting your manual collection assignments. To prevent this, ensure your API update calls include the collection data, or use a separate API call to reassign the product to the collection after the description update. This way, your manual assignments won't be lost.

 

Double-check your API logic to maintain collection associations during updates


 If this fixed your issue, likes and accepting as a solution are highly appreciated
|  Build an online presence with our custom-built Shopify Theme: EcomifyTheme
|  Check out our reviews: Trustpilot Reviews
|  We are Shopify Partners: EcomGraduates Shopify Partner



Andreas-apo
Shopify Partner
4 0 0

Thanks for your input, EcomGraduates. We will check with our API partner.