rmm_schedule_script
Run or schedule an RMM script on one Syncro asset immediately or once at a later time; requires explicit confirmation.
Instructions
Run an RMM script on one asset, now or once at a later time. Recurring schedules are not allowed through the API. No API lists scripts, so get script_id from the script's page in Syncro. This runs code on a customer machine: the user MUST confirm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_as | No | Run-as option for the script, as offered in Syncro | |
| asset_id | Yes | Asset ID to run the script on | |
| run_type | Yes | 'now' runs right away; 'later' runs once at next_time | |
| confirmed | Yes | Must be true | |
| next_time | No | When to run (ISO 8601). Required when run_type is 'later'. | |
| script_id | Yes | Script ID | |
| mav_options | No | Malwarebytes scan options: scan_type (string), silent (boolean), quarantine (boolean) | |
| runtime_variables | No | Values for the script's runtime variables, keyed by variable name |