MikroTik API icon

MikroTik API

Community Node for MikroTik RouterOS API

Actions67

System Script → Add

AI-generated

Summary

Adds a new system script to the MikroTik RouterOS via /system/script/add.

Inputs

None.

Output shape

Each execution returns an array of items, each containing { resource, operation, count, data } where data is the RouterOS API response. If the cleanKeys option is enabled, hyphens and slashes in data keys are replaced with underscores.

The node processes items sequentially; connection retries and delays are governed by the options parameters.

Examples

Example 1: Add a script named 'backup' with source code and custom policies

scriptName: 'backup', scriptSource: '/system script ...', scriptPolicy: 'read,write', commentText: 'Nightly backup'}

Links

Discussion