Execute script without object context
Execute ad-hoc NXSL script provided in the request body without object context ($object and $node are not set). Script runs with access rights of the calling user.
Requires SYSTEM_ACCESS_MANAGE_SCRIPTS.
By default the script is executed synchronously and only its return value is provided. When stream is true, the script is compiled synchronously (compilation errors are still reported with status 400), then the server returns 202 with a single-use token. The script starts once the client connects to the WebSocket URL from the response; script output (print, println, trace) and the final result are delivered over that connection. See GET /v1/script-executions/output/{token}. A running script can be stopped with POST /v1/script-executions/{execution-id}/stop or by sending {"type":"stop"} over the WebSocket.
Request body
Response
Script executed successfully
Changes
Changed in 1 of the 128 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○