Ubidots Community

Update a variable for multiple devices


what would be the best way to update a variable for multiple devices. Is it possible to do this via Dashboard? We would like to set the new variable value in the dashboard and select the devices, that need to be updated.

Example: we have 20 devices sending data to ubidots, all the devices have a variable “mode”, we would like to change this variable for 10 devices out of twenty.


Hello @digifish

Thanks for reaching out,

You can update a variable for multiple devices using this API endpoint.

It may be possible to do it from a dashboard but this would require doing it using the HTML canvas. I think an HTML form with the option to select the devices and inputs to enter the value(s) you want to update the variable with, built the payload, and use the endpoint I mentioned earlier. For more information about the HTML canvas widget please refer to this article.



Hi Santiago,

thank you for the answer. Do you maybe have some sample code how to get the device list and display it as a select box or a group of checkboxes?


Given how %arpar operates and the fact that anything older than a few years won’t reveal that what was written as %arpar2 is now %arpar, it appears that the Autoapps Command part is different from Autoremote (2). I had to change to %arpar and utilize the auto remote in order for this to work (2).
I did this for a Fakaza music website.