Is there an API endpoint for replacing a list of catalog Category relationships on an item?
From my reading of the API docs its looks like you have to build your own system for checking if your item is still in a catalog Category then delete it if its not. E.g. API call to get relationships, then API call to check if the relationships are still valid, then API call to delete the non relevent categories, then API call to update with Current relationships.
It would be much simpler if you could just add a paramater to https://developers.klaviyo.com/en/reference/update_catalog_item and https://developers.klaviyo.com/en/reference/spawn_update_items_job that allows you to specify to“Replace” current catalog category relationships with the relationships in this API call.
Am I reading the API docs correctly or is there a hidden way to do this?