def rename_device(self, device_obj, new_name):
device_obj['<STR_LIT:info>']['<STR_LIT:description>']['<STR_LIT:name>'] = new_name<EOL>return self.update_device(device_obj)<EOL>
Returns 'device object' of newly created device.

http://docs.exosite.com/portals/#update-device
http://docs.exosite.com/portals/#device-object