When I update a prodcut using POST with product ID the "category_links" get updated to. When a product was before in category 1 and now I want it to be in 2 and I post like this

"category_links": [
            {   "position": 0,  "category_id": "2"}

The product is afterwards in both categories. The only way would be to post first with


and then again with

"category_id": "2"

Is there any trick to avoid a second POST?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.