Resolver Anomalia
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))
}Conformidade e Anomalias
Resolver uma anomalia
Marca uma anomalia como resolvida com uma descrição da resolução.
POST
/
v1
/
agents
/
{agentId}
/
anomalies
/
{anomalyId}
/
resolve
Resolver Anomalia
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))
}Marca a anomalia identificada como resolvida. O ID da anomalia é um UUID. Nenhum corpo JSON é consumido pelo manipulador atual;
resolution e notes não são registrados por este endpoint.
A resposta contém status: resolved e anomaly_id. A resolução não restaura, revoga ou altera automaticamente o agente. Use a operação de agente relevante para uma alteração de status autorizada separada.Parâmetros de caminho
Resposta
200
Anomalia marcada como resolvida; a resposta contém status e anomaly_id. Nenhuma restauração automática do agente.

