Changing SSID using Api

Hell all,
I am trying to change the ssid using api command. But i am getting “No such command” in response.

$this->write('/interface/wireless',false);
        $this->write('=set=wlan1',false);
        $this->write('=ssid=test',true);
        $read = $this->read(false);

What i am missing here ? Any suggestion is appriciated.

Thank you

You can try the following sequence:

/interface/wireless/set
=.id=wlan1
=ssid=test