تحديث تكوين المخاطر
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
}عمليات المخاطر
تحديث إعدادات المخاطر
تحديث تكوين المخاطر
PUT
/
v1
/
risk
/
config
تحديث تكوين المخاطر
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
}أرسل الحقول المدعومة فقط الموضحة في Try It. تقبل الحدود من 0 إلى 100. تحتفظ القيم المحذوفة بإعداداتها المخزنة، أو تستخدم الإعدادات الافتراضية عند الحفظ الأول. قم بتكوين واختبار التسليم الفعلي بشكل منفصل عن تفضيلات الإشعارات.
الجسم
application/json
الاستجابة
نتيجة مساحة العمل الحالية

