Programmatically update the tags of a device

Tags can be used in a system to add metadata to a device -- for example, you may tag a device with a customer location or device type to further categorize the data pulled from them.

Often times, this metadata is handled in other parts of the system, outside of Formant. How can we automate updating the tags on a device to happen anytime our external systems update the relevant metadata on a device?

You can automate this by using our api endpoints.

Steps to do this:

  1. Authenticate
  2. Get the device’s current configuration version
  3. Retrieve the device’s current configuration based on the version retrieved in step 2
  4. Replace the tags with your new desired tags and update the device’s configuration