Resolve Anomaly
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))
}Compliance & Anomalies
Resolve an anomaly
Marks an anomaly as resolved with a resolution description.
POST
/
v1
/
agents
/
{agentId}
/
anomalies
/
{anomalyId}
/
resolve
Resolve Anomaly
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))
}Marks the identified anomaly resolved. The anomaly ID is a UUID. No JSON body is consumed by the current handler;
resolution and notes are not recorded by this endpoint.
The response contains status: resolved and anomaly_id. Resolution does not automatically restore, revoke, or otherwise change the agent. Use the relevant agent operation for a separate authorized status change.Authorizations
API key for machine-to-machine authentication
Path Parameters
Agent identifier
Anomaly identifier
Response
200
Anomaly marked resolved; response contains status and anomaly_id. No automatic agent restoration.

