حل الشذوذ
curl --request POST \
--url https://api.truthlocks.com/v1/agents/{agentId}/anomalies/{anomalyId}/resolve \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/agents/{agentId}/anomalies/{anomalyId}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/agents/{agentId}/anomalies/{anomalyId}/resolve"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/agents/{agentId}/anomalies/{anomalyId}/resolve"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}الامتثال والشذوذ
حل شذوذ
يضع علامة على الشذوذ كتم حله مع وصف للحل.
POST
/
v1
/
agents
/
{agentId}
/
anomalies
/
{anomalyId}
/
resolve
حل الشذوذ
curl --request POST \
--url https://api.truthlocks.com/v1/agents/{agentId}/anomalies/{anomalyId}/resolve \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/agents/{agentId}/anomalies/{anomalyId}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/agents/{agentId}/anomalies/{anomalyId}/resolve"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/agents/{agentId}/anomalies/{anomalyId}/resolve"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}يضع علامة على الشذوذ المحدد كتم حله. معرف الشذوذ هو UUID. لا يتم استهلاك أي نص JSON بواسطة المعالج الحالي؛
resolution و notes لا يتم تسجيلهما بواسطة نقطة النهاية هذه.
يحتوي الرد على status: resolved وanomaly_id. لا يؤدي الحل تلقائيًا إلى استعادة الوكيل أو إلغائه أو تغييره بأي شكل آخر. استخدم عملية الوكيل ذات الصلة لتغيير حالة مصرح به منفصل.
