SuperOps icon

SuperOps

Interact with the SuperOps MSP GraphQL API

Asset → Run Script

AI-generated

Summary

Executes a script on a specified asset in SuperOps.

Inputs

  • assetId (required) — The ID of the asset on which the script will be executed.
  • scriptId (required) — ID of the script to run on the asset.
  • scriptArguments — Array of argument objects with name and value properties, provided as JSON.

Output shape

a single record

Returns an object containing execution details including actionConfigId, script details, scriptArguments, and addedBy.

Examples

Example 1: Run a script on an asset without parameters

Set Asset ID to "987654321", Script ID to "12345", and leave Script Arguments as [].

Example 2: Run a script on an asset with arguments

Set Asset ID to "987654321", Script ID to "12345", and Script Arguments (JSON) to [{"name":"appName","value":"SuperOps.ai"}].

Links

Discussion