Menu
Run a script (POST)
Run a script
POST
/_scripts/painless/_executeUse it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Run a script (POST) action (under script).
- Fill in the fields below, then reference the result from later steps as
{{runAScriptPost.response.data}}.
Fields
Response
Returns 200 with an object. Read it in later steps with {{runAScriptPost.response.data.<field>}}.
{
"result": {}
}
Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.
Was this page helpful?