I’m trying to change the config.policy option of the rate-limiting (CE) plugin through the API.
I only want to change that specific config value, so I’m using PATCH.
I’m using the following request:
curl -X PATCH kong:8001/plugins/{plugin-id} --data "config.policy=local"
I’m getting the following error:
{"config":"You need to set at least one limit: second, minute, hour, day, month, year"}
But the plugin has the ‘second’ property set. This is just the reason for using the PATCH: not having to set the other properties again.
Am I doing something wrong?