Setparameter via API. what is wrong?

curl -i ‘http://localhost:7557/devices/bc62ce-IGD-1100157743800107/tasks?timeout=3000&connection_request
-X POST
–data ‘{“name”: “setParameterValues”, “parameterValues”: [[“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.PortMapping.2.ExternalPort”, “44444”]]}’

ERROR:

faultCode: “9003”
faultString: Invalid arguments
setParameterValuesFault:

  • parameterName: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.PortMapping.2.ExternalPort
    faultCode: “9007”
    faultString: Invalid parameter value

Your external Port is outside of the TCP / UDP Port range.

Some Error When i try 5555

curl -i ‘http://localhost:7557/devices/bc62ce-IGD-1100157743800107/tasks?timeout=3000&connection_request
-X POST
–data ‘{“name”: “setParameterValues”, “parameterValues”: [[“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.PortMapping.2.ExternalPort”, “44444”]]}’

root@xxx:~# curl -i ‘http://localhost:7557/devices/bc62ce-IGD-1100157743800107/tasks?timeout=120&connection_request’ \

-X POST
–data ‘{“name”:“setParameterValues”, “parameterValues”: [[“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.PortMapping.2.ExternalPort”, “5555”, “xsd:string”]]}’
HTTP/1.1 202 Task queued but not processed
GenieACS-Version: 1.2.7+20210919001756
Content-Type: application/json
Date: Thu, 23 Sep 2021 09:51:09 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

{“name”:“setParameterValues”,“parameterValues”:[[“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.PortMapping.2.ExternalPort”,“5555”,“xsd:string”]],“device”:“bc62ce-IGD-1100157743800107”,“timestamp”:“2021-09-23T09:51:09.584Z”,“_id”:“614c4e0dd12ec9b5b56b2f3b”}root@xxx:~#