FX30 set Metadata for previously provisioned device using API

Hello All.

for my application I need to apply set some metadata parameters of the device (known as “custom properties” in the Octave dashboard) for the device that was already provisioned before.

From Octave API docs I found it is only possible doing so using Bulk Provision Device API call. If I do that on previously provisioned device I get Error 400 stating “Device already exists in Octave”.

Is there any other way to set metadata rather than removing the device and re-provisioning it using Bulk Provision Device?

For instance, since I can set this Azure device ID from the Octave dashboard (see picture) it means there’s some API function which allows doing so

Thanks.

1 Like

You can update the “metadata” thanks to the Device API endpoint (PUT)

https://openapi.octave.dev/#operation/updateDevice

Make sure to rewrite the whole “metadata” object