How to setting up Failure Mode for route using API?

Hi you all,
as you know when adding a new route from the web interface you can choose two failure modes: fail closed or fail open.

Is there a way to specify the failure mode to use when creating a new route via API? Or a way to change it after the route creation?

Regards

2 Likes

No way?

A bit late, but I found that when I send {request_limit_fail_open: true} in my json, cloudflare API replies with
{
“result”: {
“id”: “”,
“request_limit_fail_open”: true
},
“success”: true,
“errors”: ,
“messages”:
}

1 Like