Objects

Execute dashboard element script within context of given object

Changed on

Execute an NXSL script embedded in a dashboard element against a context object and return the result as a string map.

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

Request

  • Base URL
    http://127.0.0.1:8000
  • URL
    http://127.0.0.1:8000/v1/objects/{object-id}/execute-dashboard-script
  • Auth
    HTTP bearer

Path parameters

object-idinteger required

Dashboard or dashboard template object ID

Request body

objectIdinteger

Context object ID for script execution. If omitted or 0, the dashboard object itself is used as context.

elementIndexinteger required

Index of the dashboard element containing the script

Response

Script executed successfully

resultobject

Map of string key-value pairs with script execution results

Changes