Body
-
context string
The context that the script should run in.
-
context_setup object
Additional properties are allowed.
-
script object
Additional properties are allowed.
GET
/_scripts/painless/_execute
curl \
-X GET http://api.example.com/_scripts/painless/_execute \
-H "Content-Type: application/json" \
-d '{"context":"string","context_setup":{"document":{},"index":"string","query":{}},"script":{"source":"string","id":"string","params":{"additionalProperty1":{},"additionalProperty2":{}},"":"painless","options":{"additionalProperty1":"string","additionalProperty2":"string"}}}'
Request examples
{
"context": "string",
"context_setup": {
"document": {},
"index": "string",
"query": {}
},
"script": {
"source": "string",
"id": "string",
"params": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"": "painless",
"options": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}
}
Response examples (200)
{
"result": {}
}