So, we have a bunch of networks where the list for 'productTypes' does not match the actual devices in the network. So, there are networks where 'switch' is listed in 'productTypes', but the network never had any MS switch device in it.
We think this may have happened when we started copying networks when creating a new network in the console, and we assume that copied over the 'productTypes' field as well to the new network.
I want to fix this, but I don't know of a way in the API to do this. It seems 'productType' is not a field that can be updated by the updateNetwork API call.
Is there any other way of fixing this programmatically?