---
title: PUT Threshold
description: The PUT method in Threshold application programming interface (API) is used to set the threshold values for attack types.
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_reference_guide:pingintelligence_put_threshold
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_reference_guide/pingintelligence_put_threshold.html
revdate: April 3, 2024
---

# PUT Threshold

The PUT method in Threshold application programming interface (API) *(tooltip: \<div class="paragraph">
\<p>A specification of interactions available for building software to access an application or service.\</p>
\</div>)* 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](../managing_pingintelligence_for_apis/pingintelligence_tune_thresholds_false_positives.html#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:

```json
{
 "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:

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

Sample Input for across API:

```json
{
 "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:

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