How add a catalog to a multiple locations of a B2B company by using the graphql

I have a requirement where a catalog should be added to multiple locations of the same company. With graphql companycreate mutation, I created a company after that using the companyLocationCreate mutation I created 5 locations in Shopify for that company. Now I used the Catalog update or CatalogContext update to assign the catalog to that 5 locations. However, I can add the catalog for the 5th location, and for the remaining 1st to 4th locations it is added and then removed by using the CatalogUpdate mutation. I am not using any delete operation on the CatalogUpdate.

By CatalogContextUpdate I am facing an issue. Could you please help with this.