Thanks for your reply Simon.
I am trying to automate API scan through OpenAPI - ZAP in java based framework.
I am able to use ClientApi -> callApi("openapi", "action", "importFile", map) method, but I need to change headers, need to pass values for query params/path params and headers and need to set payload body as well for POST/PATCH requests.
After that I need to run active/passive scans.
Can you please let me know on this?
Thanks.