Hi guys.
How can i get tags and/or attributes returned as and object map instead of an array in API Node using Devices (or device): GET.
In the node “Device: GET” we have this options.

But i wanna this in the API Node.
Thank you, hope you guys understood what i need.
Hi @Igo_Monteiro, and welcome to the Losant Forums.
Sadly there is not a way to return the attributes and tags as an object map in the API currently, but I’m filing a feature request to allow that by passing a flag as a query parameter. I will follow up with you if it is selected for development.
1 Like
Thank you @Dylan_Schuster, this will be an important update.
I constantly use this feature (tags/attributes as object), because its more reusable and flexible than access using array.