Hi everybody, I want to know if there is any way to change “attributes tags” from a workflow. Up to now I pass values from a dashboard block (UI) with a button but I dont know how can update “attribute tags” with that values. Attributes tags already exist, it means I just want updating them.
Excellent question! Here are some previous forum posts that should help to point you in the right direction:
Hi @Kyle_Stokes2 ,
Great question, in order to update attribute tags via an input control block, you will need to use the button trigger to trigger a workflow to run that will update your device attributes based on the text input in the input control block.
You will need to provide a payload to send to the workflow via your input control block:
[Screen Shot 2020-10-28 at 11.49.13 AM]
The payload I’m sending is as follows:
{
"updatedAttributeTags": {
"attributes": [
{
"…
Fair point, and we’ll look into some easier ways to update a single attribute tag through the Device: Update Node.
Here’s another way that you may find easier to use: The bulk device update API endpoint supports adding, editing, or removing attribute tags one at a time. So instead of using the Device: Update Node , you could use the Losant API Node targeting the Devices: Patch resource/action. Demonstration workflow is attached.
The downside is that the bulk edit operation does not include the …
Check out these posts and let me know if you still have any questions!