User defined tags in requests and batch?


How to use user defined tags in post request and in batch method as well ?

(question copied from k6 slack channel)


You can put a tags field in the params options as with the http.get (

You should put body in the case of if it has to be empty you can put null, empty string or empty object. In the case of http.batch you can look at the documentation to see how params is defined and used.

(answer copied from k6 slack channel)