scriptsPainlessExecuteedit

client.scriptsPainlessExecute([params, [callback]])

Check the API Conventions and the elasticsearch docs for more information pertaining to this method.