PingIntelligence

PUT Threshold

The PUT method in Threshold API is used to set the threshold values for attack types. If you set the mode to system, the user set values are dropped. If you move the mode back to user, you would need to configure the threshold values again. For more information on manually setting threshold values, see Manually set thresholds.

Method: PUT

URL:: /v4/abs/attack/threshold

Header Value

Access Key

x-abs-ak

<string>

Secret Key

x-abs-sk

<string>

Sample input for an API

{
 "api_name" : "atmapp",
  "mode": "system",
 "ioc_threshold": [
 {
 "type": "api_memory_post",
 "variable": "A",

 },
 {
 "type": "api_memory_put",
 "variable": "B"
 }
 ]
}

The following is the response when the threshold values are set:

{
    "status_code": "SUCCESS",
    "message": "attack threshold updated"
}

Sample input for across API:

{
 "id":"18",
  "mode": "user",
 "ioc_threshold": [
{
     "type": "extended_probing_replay_cookie",
     "variable": "A",
     "tn": "25",
     "tx": "28"
   },{
     "type": "extended_probing_replay_cookie",
     "variable": "B",
     "tn": "3",
     "tx": "4"
   }
]
}

The following is the response when the threshold values are set:

{
    "status_code": "SUCCESS",
    "message": "attack threshold updated"
}