macadmins/simpleMDMpy

Devices.update_device only changes SimpleMDM name

Closed this issue · 0 comments

The Devices.update_device() function claims to update both the SimpleMDM name and device name. However, it only updates the SimpleMDM name.

def update_device(self, name, device_id):
"""Update the SimpleMDM name or device name of a device object."""
url = self.url + "/" + str(device_id)
data = {'name': name}
return self._patch_data(url, data)

SimpleMDM API Devices - Update

Argument Description
name The name of the device within SimpleMDM.
device_name The name that appears on the device itself. Requires supervision. This operation is asynchronous and occurs when the device is online.