POST Ratelimit doesnt work

Im getting this error when making:

POST https://api.cloudflare.com/client/v4/zones/ZONEID/rate_limits to the cloudflare API

Payload sent (Json):

{
"match": {
"request": {
"methods": [
"GET",
"POST"
],
"schemes": [
"HTTP",
"HTTPS"
],
"url": "[prueba.com/path](http://prueba.com/path)"
}
},
"threshold": 60,
"period": 900,
"action": {
"mode": "challenge"
}
}

Cloudflare response:

{
"result": null,
"success": false,
"errors": [
{
"code": 10025,
"message": "ratelimit.api.not_entitled.allow_method"
}
],
"messages": []
}

Are you using business plan and above?

The option to choose request method is not available for free and pro plan domains.

Hello, im getting this error when making:

POST https://api.cloudflare.com/client/v4/zones/ZONEID/rate_limits

Payload sent (Json):

{

    "match": {

        "request": {

            "methods": [

                "POST"

            ],

            "schemes": [

                "HTTPS"

            ],

            "url": "prueba.com/path"

        }

    },

    "threshold": 60,

    "period": 900,

    "action": {

        "mode": "challenge"

    }

}

Response:

{

    "result": null,

    "success": false,

    "errors": [

        {

            "code": 10025,

            "message": "ratelimit.api.not_entitled.allow_method"

        }

    ],

    "messages": []

}
  1. Are you on an Enterprise Plan?
  2. Are you the main/super administrator for that account?
  3. Can you do the same thing through the dashboard interface?
1 Like