Scripting
Run and manage global scripts. Test and execute JavaScript scripts against Mango data.
See also: Scripting documentation | Full API Reference for interactive testing and complete schemas.
Endpoints
| Method | Path | Description | Reference |
|---|---|---|---|
| GET | /global-scripts | Query Global Scripts | API Reference → |
| POST | /global-scripts | Create a Global Script | API Reference → |
| DELETE | /global-scripts/{xid} | Delete a Global Script | API Reference → |
| GET | /global-scripts/{xid} | Get a Global Script | API Reference → |
| PUT | /global-scripts/{xid} | Update a Global Script | API Reference → |
| GET | /global-scripts/export | Export formatted for Configuration Import by supplying an RQL query | API Reference → |
| POST | /global-scripts/validate | Validate a Global Script | API Reference → |
| POST | /global-scripts/validate-script | Validate a Script | API Reference → |
| GET | /script/engines | List available script engines (e.g. Nashorn, Graal.js) | API Reference → |
| POST | /script/eval-file-store/{fileStoreName}/** | Evaluate a filestore file as a script on the backend using a scripting engine | API Reference → |
| POST | /script/run | Run a script, supplied permissions must already be granted to submitting User. Admin only | API Reference → |
| POST | /script/validate | Validate a script, supplied permissions must already be granted to submitting User. | API Reference → |