Connect to Wifi via api.

I’m trying to connect the wifi to a specific SSID on the MAX-BR2-PRO series.
I was able to disconnect from the WiFi network using the api, where connId=6. However, when trying to connect, I get following error:
Screenshot 2023-12-04 at 16.24.31.png
I am using following command to connect:
https://192.168.12.x/api/cmd.wifi.connect?connId=6&ssid=********
These are my connection id’s:
Screenshot 2023-12-04 at 16.27.32.png
Any thoughts? Thanks!