How do you get the routeros API to support this command?

I want use this command :/ip route set [/ip route find dst-address=“172.16.99.1/32”] bg p-communities=0:88

But In RouterOS API. Not support this command.

I trying to use API type command. But return null.

I have seen GitHub wiki. they say: To emulate the subcommand operator (the “[” and “]”), you must execute the other command separately beforehand (with another Request object), and take its result MyAARPMedicare Login

$util = new RouterOS\Util($client = new RouterOS\Client($serverip,$username,$password));
$query = RouterOS\Query::where('dst-address',$dstAddress);
$addRequest = new RouterOS\Request('/ip/route/set');
$addRequest->setArgument('gateway',$gateway);
$addRequest->setArgument('bgp-communities',$bgpSetting);
$addRequest->setQuery(RouterOS\Query::where('dst-address',$dstAddress));
$responses = $client->sendSync($addRequest);
return $responses;

Anyone know where have a problem?

hi
You need to make the first request to get all records
/ip/route/print
?dst-address=172.16.99.1/32


Next for all .id set new bgp-compunity
/ip/route/set
=.id=$id
=bgp-compunity=0:88

use for testing https://github.com/vasilevkirill/RouterOSAPIGUI

If your problem still occurs you can check the implementation of whole at MYAARPMEDICARE.COM LOGIN

For any other concern message me inbox!