Script
Use the script support APIs to get a list of supported script contexts and languages. Use the stored script APIs to manage stored scripts and search templates.
6 endpoints
-
Get a script or search template
- GET /_scripts/{id}
-
Delete a script or search template
- DELETE /_scripts/{id}
-
Get script contexts
- GET /_script_context
-
Get script languages
- GET /_script_language
-
Create or update a script or search template
- POST also PUT /_scripts/{id}/{context}
-
Run a script
- POST also GET /_scripts/painless/_execute