Use the following APIs to manage, store, and test your scripts.
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.
Use the Painless execute API to safely test Painless scripts before using them in production.