Operation Integer replaceDeviceType (String devicetype, String system_name, Device Type DeviceTypeNew), in Class Device Type

Documentation
Function whic replaces the given devicetype with the new Device Type
Retunrs 0 if the replacement is successful