How to properly use Octave.Device.update() within a task

I am currently trying to write a task that changes a boolean value (developerMode) within a device.

To update the device, I was directed towards Octave.Device.update(deviceID, deviceDiff). I am able to get the deviceID, but I’m unsure what object should be used for deviceDiff. When putting in an object for deviceDiff that is associated with the boolean value I’m trying to change, I get the error, ‘Unknown error has occurred.’

I am wondering if anyone could enlighten me on how to properly use this function since the documentation is sparse.

Hi cookg,

deviceID and deviceDiff are string type. Please make sure they are in single or double quotation marks.

You can refer doc here