How to delete Things with a specific tag from REST Api
My question is in the title !
I've been using REST Api in order to delete a specific entity, but I need to delete a group of things with the same tag, so how could I do that?
Thanks in advance!
My question is in the title !
I've been using REST Api in order to delete a specific entity, but I need to delete a group of things with the same tag, so how could I do that?
Thanks in advance!
Hi Elie,
The best way to do this is to create a custom service that you call from the REST Api and pass in the value of the tag (this can be a string value in the rest call). You can convert this to a tag in the service, then search for things with that tag using the SearchThings service in the SearchFunctions resource. Loop through the resulting infotable and delete the things.
Adam
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.