Community discussions

MikroTik App
 
takoyakiaegyo
just joined
Topic Author
Posts: 3
Joined: Wed Mar 16, 2022 9:40 am

Need help with setting values via terminal command and via API

Tue Jul 26, 2022 5:47 am

hello I'm trying to set my wall-gardened ip list values via API and in Terminal inside routerOS, my problem is how can i set values to null, in some field its working but how can i set it from a value to null when i don't need the parameter

via terminal
/ip hotspot walled-garden ip set numbers=14 action=accept  dst-address=""

via api
$api->comm('/ip/hotspot/walled-garden/ip/set', array(
                '.id'=>"*1A",
                'action' => "reject",
                'server'=>""
            ));
 
takoyakiaegyo
just joined
Topic Author
Posts: 3
Joined: Wed Mar 16, 2022 9:40 am

Re: Need help with setting values via terminal command and via API

Tue Jul 26, 2022 9:06 am

never mind silly me should have been using Set and Unset

Who is online

Users browsing this forum: Bing [Bot], iDaemon, JRnet, SkyNett7k and 124 guests