Poll operation status using Get Operation API request and that known operation ID until status value becomes “FINISHED”.
It all seems to work fine, but if I enter that device in my Octave dashboard there’s a message something like “You need to reboot that device, you have XX minutes left”. Is that reboot really necessary for provisioning to be finalized?
If a device is deleted and added again or moved from one company to another, the device should be power cycled for its Resources to show up properly (i.e., if the device remains powered on during the migration, it will not properly appear in Octave with its full Resource tree until the device is power cycled).
This can be done by physically rebooting the device or by sending a reboot command by writing an Event with: {"elems": { "/util/reboot/trigger": 1 }} to the device /:command Stream.