OpenAPI EAP modify ports
Hello,
I have implemented a limited set of functionality using the OpenAPI. My code can log in and successfully call several API methods. So my basic OpenAPI infrastructure is working.
The OpenAPI docs indicate that it is possible to modify the ports of an EAP. See:
https://use1-omada-northbound.tplinkcloud.com/doc.html#/03%20Device/Ap/modifyApPort
Specifically I am trying to use the API to enable/disable the ETH ports on the EAP615-WALL and EAP655-WALL
The status and settings of the ETH ports can be retrieved via the "Get AP Port List" API call:
https://use1-omada-northbound.tplinkcloud.com/doc.html#/03%20Device/Ap/getApPortList
I can successfully call the above methods and get valid results.
However when I make an API call to change the status of an ETH port, I get a "Internal Server Error".
Here is the debug output of my test code: (Since this is a test env I'm not worried about leaking the secrets in the following snippet.)
mdu-wifi-mgt(dev)> oc.disable_ap_ports("98-25-4A-75-C5-5C") OmadaOpenapi::sey_ap_ports_status(false) https://172.16.1.194:8043/openapi/v1/50f9c80e0e88fa2b9823de529c3ff6e3/sites/6776ba117f60061acafbe67f/aps/98-25-4A-75-C5-5C/ports {headers: {"Content-Type" => "application/json", "accept-encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3", "accept" => "*/*", "Authorization" => "AccessToken=AT-DhURBaXKyYhgedRpLLEr8Ufr4VmFA4Hq"}, verify: false, body: "{\"lanPort\":\"ETH1\",\"status\":false}"} {"timestamp" => 1754790668968, "status" => 500, "error" => "Internal Server Error", "path" => "/openapi/v1/50f9c80e0e88fa2b9823de529c3ff6e3/sites/6776ba117f60061acafbe67f/aps/98-25-4A-75-C5-5C/ports"}
So, two questions:
1) Is the API call "Modify Ap Port Config" (https://use1-omada-northbound.tplinkcloud.com/doc.html#/03%20Device/Ap/modifyApPort) implemented and functional?
2) If yes, am I calling it correctly, ie passing the correct values in the body of the request?
Thanks
Mark