Position of the firewall rules

In the mikrotik shell, it has the syntax “place-before=n” in order to put new item in a position you want.
Following the console mikrotik documentation;
“place-before - places a new item before an existing item with specified position. Thus, you do not need to use the move command after adding an item to the list”

for instance:
/ip firewall filter add chain=input src-address=172.1.1.1 dst-address=172.1.1.2 action=accept place-before=0

create a new rule and put it in the first position

My question is:
Is there a way to do the same thing via winbox’s api ?

In my opinion it would be very useful to have this feature within the winbox, if it won’t has.

Thanks for advance.

I have to move the newly created rule not that much. I use copy wich duplicates the rule neighbouring is openend.

There could be added a extra button which does the same as copy but defaults all the settings in that new rule. You have still to move the rule one up if you want it at the top of the rules.

If, when talking about API, you really mean GUI: dragging rules in the rule list is supposed to do the trick. It does the trick in WebUI …