Update risk configuration
curl --request PUT \
--url https://api.truthlocks.com/v1/risk/config \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"auto_case_threshold": 70,
"auto_block_threshold": 90,
"auto_challenge_threshold": 50
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
auto_case_threshold: 70,
auto_block_threshold: 90,
auto_challenge_threshold: 50
})
};
fetch('https://api.truthlocks.com/v1/risk/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/config"
payload = {
"auto_case_threshold": 70,
"auto_block_threshold": 90,
"auto_challenge_threshold": 50
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/config"
payload := strings.NewReader("{\n \"auto_case_threshold\": 70,\n \"auto_block_threshold\": 90,\n \"auto_challenge_threshold\": 50\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"auto_case_threshold": 50,
"auto_block_threshold": 50,
"auto_challenge_threshold": 50,
"email_alerts_enabled": true,
"webhook_alerts_enabled": true,
"siem_format": "json",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Risk operations
Update risk settings
Update risk configuration
PUT
/
v1
/
risk
/
config
Update risk configuration
curl --request PUT \
--url https://api.truthlocks.com/v1/risk/config \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"auto_case_threshold": 70,
"auto_block_threshold": 90,
"auto_challenge_threshold": 50
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
auto_case_threshold: 70,
auto_block_threshold: 90,
auto_challenge_threshold: 50
})
};
fetch('https://api.truthlocks.com/v1/risk/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/config"
payload = {
"auto_case_threshold": 70,
"auto_block_threshold": 90,
"auto_challenge_threshold": 50
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/config"
payload := strings.NewReader("{\n \"auto_case_threshold\": 70,\n \"auto_block_threshold\": 90,\n \"auto_challenge_threshold\": 50\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"auto_case_threshold": 50,
"auto_block_threshold": 50,
"auto_challenge_threshold": 50,
"email_alerts_enabled": true,
"webhook_alerts_enabled": true,
"siem_format": "json",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Send only supported fields shown in Try It. Thresholds accept 0 through 100. Omitted values retain their stored settings, or use defaults on first save. Configure and test actual delivery separately from notification preferences.
Authorizations
API key for machine-to-machine authentication
Body
application/json
Required range:
0 <= x <= 100Required range:
0 <= x <= 100Required range:
0 <= x <= 100Stored notification preference; not proof of email delivery.
Stored notification preference; not a SIEM destination configuration.
Available options:
json, cef, leef Response
Current workspace result
Required range:
0 <= x <= 100Required range:
0 <= x <= 100Required range:
0 <= x <= 100Stored notification preference; not proof of email delivery.
Stored notification preference; not a SIEM destination configuration.
Available options:
json, cef, leef RFC3339 when stored; empty for untouched defaults.

