Create Site Job
Creates a new job (command/script) for a specific site. Requires job:create
permission and user ownership of the site. Uses headers for job metadata.
Authorizations
Standard JWT token obtained via a separate authentication process. Required for most user-facing API endpoints.
Headers
A UUID to ensure the request is processed only once.
A brief description of the job. Defaults if not provided.
3 - 100
Whether the job requires explicit 'done' status from the device (true) or is completed upon download (false).
Whether to create an SFTP backup before running the script.
Whether to attempt to trigger an immediate poll from the device after job creation.
Path Parameters
The UUID of the Site to create the job for.
Body
The RouterOS script payload to be executed.
The body is of type string
.
3 - 10000
"/ip firewall filter add action=accept chain=input comment=\"Allow Winbox\" disabled=no dst-port=8291 protocol=tcp\n"
Response
Job created successfully. Returns the created job resource.
The response is of type object
.