Suspicious IP throttling rate management API and dashboard disparity

Problem statement

When configuring suspicious IP throttling in the dashboard we can set a per-day throttling rate for each stage (Login, Signup, etc.). With the management API, however, it’s only possible to set an interval of time in milliseconds.

How can we set a per-day rate via the management API?

Cause

The dashboard allows you to set a per-day throttling rate, but you can only provide an interval via the management API.

Solution

The dashboard actually uses the management API but converts the provided throttling rate into a millisecond interval.

You can do the same using the following formula:

86400 / throttling rate (per day) * 1000

For example, if you want to set 100 per day, you would use an interval of 864000.