You are looking at preliminary documentation for a future release. Not what you want? See the current release documentation.
Use the following APIs to manage, store, and test your scripts.
Script support APIsedit
Use the script support APIs to get a list of supported script contexts and languages.
Stored script APIsedit
Use the Painless execute API to safely test Painless scripts before using them in production.