Format the data format of a batch using Kapacitor


I wish to use Kapacitor to push data to an RESTful Endpoint (via HTTP POST) and before pushing the data I wish to format the JSON Structure into some specific way which is necessary for the Endpoint. How do I achieve this? I am looking for some documentation that achieves this.