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.
Endpoints
6 endpoints
-
GET
Get script contexts
/_script_context -
GET
Get script languages
/_script_language -
POST
GET
Run a script
/_scripts /painless /_execute -
GET
Get a script or search template
/_scripts /{id} -
DELETE
Delete a script or search template
/_scripts /{id} -
POST
PUT
Create or update a script or search template
/_scripts /{id} [/{context}]