Can't set client rate limit with controller API

Can't set client rate limit with controller API

16 Reply
Re:Can't set client rate limit with controller API
2025-10-18 19:16:22

Hi, everyone.

It seems to be the same issue that @CyberAustin mentioned.

 

I’m using the Omada Cloud Controller with the mbentley/omada-controller:5.15.24.19 Docker image:

https://hub.docker.com/layers/mbentley/omada-controller/5.15.24.19

 

My n8n workflow tries to remove a rate limit for a wireless client and sends the following PATCH request:

{
  "body": {
    "rateLimitId": "",
    "enable": false,
    "upEnable": false,
    "upUnit": 1,
    "upLimit": 0,
    "downEnable": false,
    "downUnit": 1,
    "downLimit": 0
  },
  "headers": {
    "authorization": "**hidden**",
    "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7"
  },
  "method": "PATCH",
  "uri": "https://omadacloud.************/openapi/v1/c***********************7/sites/6**********************7/clients/C*-**-**-**-**-*8/ratelimit",
  "gzip": true,
  "rejectUnauthorized": true,
  "followRedirect": true,
  "resolveWithFullResponse": true,
  "followAllRedirects": true,
  "timeout": 300000,
  "encoding": null,
  "json": false,
  "useStream": true
}

 

The response message is:

{
  "errorCode": -1001,
  "msg": "Parameter [mode] could not be null.\n"
}


I’m following this thread and really looking forward to a solution :)


 

 

  1  
  1  
#12
Options
Re:Can't set client rate limit with controller API
2025-10-18 19:43:09

  @O_Cabeca_BR Join the queue friend. Hopefully @Vincent-TP gets back soon about that bug report.

  0  
  0  
#13
Options
Re:Can't set client rate limit with controller API-Solution
2025-10-31 08:47:34 - last edited 2025-10-31 08:47:36

  @CyberAustin 

@O_Cabeca_BR 

 

This is fixed by the newly release firmware today, below is the link:

Omada SDN Controller_V6.0.0.x Pre-Release Firmware (Update on 31st Oct, 2025)

 

Thank you so much for your feedback.

Recommended Solution
  0  
  0  
#14
Options
Re:Can't set client rate limit with controller API
2025-10-31 08:49:58

  @Vincent-TP awesome!

  0  
  0  
#15
Options
Re:Can't set client rate limit with controller API
2025-11-05 17:59:09

  @Vincent-TP I can confirm that this is fixed now. However, they removed the "enabled" part from the API documentation, and it is still very much a thing. When you set a rate limit now with the API, the overall rate "enabled" box still gets checked, but when you use the "upEnable" and "downEnable" and set both to false, the overall enabled is still checked. I tried add "enable": "false" in a few places and I couldn't seem to affect that check box. I don't think it's actually breaking anything, but maybe something to fix in the next release. JSON below for an example of what I'm talking about.

        payload = {
            "mode" : "0" ,
            "rateLimitId" : "custom" ,
            "enable" : "false" , #<-------- This is still needed apparently, but it doesn't seem to take effect in the controller
            "customRateLimit" : {
            "upEnable" : "false" ,
            "upUnit" : 1 ,
            "upLimit" : 1 ,
            "downEnable" : "false" ,
            "downUnit" : 1 ,
            "downLimit" : 1
            }
        }
  0  
  0  
#16
Options
Re:Can't set client rate limit with controller API
2025-11-19 08:20:06

Hi  @CyberAustin 

 

Are you referring to the interface “Set ratelimit setting for given client”?

In the latest documentation, there is no enable field, so it not working is expected. If you want to disable it, simply set upEnable and downEnable to false.

 

  0  
  0  
#17
Options