Need help with the below error

"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [inline].","line":1,"col":12}],"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [inline].","line":1,"col":12},"status":400}

I have run the payload in kibana with both GET and POST successfully but cannot run it in rest client? I am trying to load test ElasticSearch?

You might have to share your code and mention what version you are using to figure out what went wrong.

I will have to check if there is no PHI in the data - as it may be a security issue to share it.
thanks!