Updating the product through API deselects sales channels in shopify store

When using the API route for updating a product (the route is fired from our application), the sales channels, that are set on the product in the shopify store are deselected. Reading the documentation that shouldn’t happen, because there isn’t a property that can be send through the API route and update/change the sales channels.
Am I doing something wrong?

Oke for anyone having this problem i found the SOLUTION. On my application i use the POST request to update the products on my shopify store (product documentation). On of the parameters of the payload for the POST request is ‘published’, which can be set to true or false.
Set it to TRUE if you don’t want the sales channels of the product to be deselected in Shopify.