latestOpenAPI 3.0.2raw.githubusercontent.com2026-08-17264128491.2 KB

070b10a450e2

Objects

Execute script within context of given object

Execute ad-hoc NXSL script provided in the request body within context of given object.

Requires OBJECT_ACCESS_EXECUTE_SCRIPT on the object.

post/v1/objects/{object-id}/execute-script

Path parameters

object-idinteger required

Request body

parametersstring[]

Optional list of parameters to be passed to the script

resultAsMapboolean

If true, result will always be presented as a map (JSON object)

scriptstring

Source code of the script

Response

Script executed successfully

{"stackTrail":"paths:/v1/objects/{object-id}/execute-script:post:responses:200:content:application/json:schema:properties:result","oasType":"schema","type":"unknown","description":"Script result. When resultAsMap is true (or the script returns a hash map or array) this is a JSON object; otherwise the scalar result serialized as JSON."}