Operation Integer updateDevice (String devicename, String system_name, Device DeviceNewValues), in Class Device

Documentation
Update the given devicename with the new values put in DeviceNewValues
returns 0 if the update is successful