Error in API documentation : Set wan config


I found an error in the GL.iNET API documentation : API documentation

To configure the WAN interface, the routeur require 2 dns but in documentation there are just 1 dns parameter.
If I test with just dns parameter, the router send : {"msg":"dns missing","code":-5}

To don’t have this error I need to give dns1 and dns2 and not dns

Like this : curl --header "Authorization:[Token]" -d "proto=static&ipaddr="

I have the GL-MIFI.


Mickaël Descamps

Sorry that the API document is a bit out of date.
For now, the best way to know the router API is chrome developer console.