Manually Enable/Disable NAT Rules by Srcipting

I would like to know how to start writing scripts for the MikroTiK RB400. Is there a document that read to get started?

What I need to do is manually enabe/disable NAT rules from a browser or API interface(using a button). Is this possible? If so, what’s the best scripting language to use?

Thanks

Read wiki. Have got manual on script. Usually u use scheduler to run scrip when a condition is met. Don not know about from browser.

The API can certainly be used to accomplish what you are looking for. At the very top of this forum, there is a sticky topic to API Examples.

In addition, the following may provide you with some insight into what commands you may be able to execute from within the API:
http://wiki.mikrotik.com/wiki/Scripting
http://www.mikrotik.com/testdocs/ros/2.9/system/scripting.php

Thanks!! Your info really helped.

Hi,reeseshad, where you able to create a webpage to enable/disable the NAT rules, this is what im looking for.