Watcher action: substitute the found data in the "path" of action

Hi!
If your search returns:

  1. Just 1 IP, that task should be straightforward: just add the (mustache template) variable which contains it within your payload.

  2. A list of results and your ipban web service can handle multiple IPs passed in the url: you might build the variable section of your path using the mustache template options to iterate a list.

There is a good example of 1 and 2 in this response:

You can see the exact contents of your search using the simulation tab of your watch.

If you need more complex processing, you can also include a transform section with a script to make the modifications and replace the payload or add a field with the desired value.
Then you can use the resulting field like the previous points 1 or 2.

1 Like