MikroTik API icon

MikroTik API

Community Node for MikroTik RouterOS API

Actions67

System Scheduler → Add

AI-generated

Summary

Adds a system scheduler entry on the MikroTik device

Inputs

  • schedulerName — Name of the scheduler entry. Used as the 'name' parameter in /system/scheduler/add.
  • schedulerStartDate — Start date (e.g. jan/01/1970 or 10:00:00). Omitted if empty via cleanParams.
  • schedulerStartTime — Start time (e.g. 10:00:00 or startup). Omitted if empty via cleanParams.
  • schedulerInterval — Interval (e.g. 1h or 00:00:00). Defaults to 00:00:00.
  • schedulerOnEvent — Event to execute when the scheduler triggers. Omitted if empty via cleanParams.
  • schedulerPolicy — Comma separated policies (e.g. read,write). Omitted if empty via cleanParams.
  • commentText — Comment for the scheduler entry. Omitted if empty via cleanParams.

Output shape

[{ resource, operation, count, data }] per workflow item

data originates from the /system/scheduler/add API response. If the cleanKeys global option is enabled, '-' and '/' characters in data keys are replaced with '_'. count is data.length for arrays, otherwise 1.

Examples

Example 1: Create a scheduler named 'backup' that runs daily at 02:00

Set schedulerName to 'backup', schedulerStartDate to 'jan/01/1970', schedulerStartTime to '02:00:00', and schedulerInterval to '1d'.

Links

Discussion