Retrive and commit a script via API

Is it possible to retrive a complete script via api? And then to save the script into the router (when it’s modifyed)


thanks

If we’re talking about a script at “/system script”, yes, and doing so is as trivial as getting/setting anything else.

If we’re talking about a script file (at “/files”)… err… not quite… it’s a long story… let’s just say “no”.

I asked before i teted because i know that there were some limitations before.
I Have made a windows service that at midnight, every day connects to Mikrotik routers (specifyed in a XML file) and creates a backup of the configuration and then downloads that configuration.
Now what i want to do is an utility that will connect to a router and upload all neccecery scripts, some defaults into firewall and so on. The utility would allso have a script editor with syntax coloring (mayor plus would be the ability to push that script to a router)


Anyway, thanks.