You can send the same in the API call.
https://jsreport.net/learn/scripts#api