PATCH
/api/v1/privacy/incidents/{id}Update incident details (root cause, corrective actions, status, resolution date)
Partial update of a breach incident. Use POST /notify for the load-bearing authority-notification event; this endpoint is for routine investigation updates.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/api-keys.
Parameters
id in pathrequiredstringRequest body required
Example
{
"root_cause": "string",
"corrective_actions": [
"string"
],
"status": "draft",
"resolution_date": "2026-07-14T19:53:34.712Z"
}Schema
{
"application/json": {
"schema": {
"type": "object",
"properties": {
"root_cause": {
"type": "string"
},
"corrective_actions": {
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"type": "string",
"enum": [
"draft",
"open",
"notified",
"resolved"
]
},
"resolution_date": {
"type": "string",
"format": "date-time"
}
}
}
}
}Response
All status codes
200Updated
Code samples
cURL
curl -X PATCH \
https://evalguard.ai/api/v1/privacy/incidents/{id} \
-H "Authorization: Bearer $EVALGUARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "root_cause": "string", "corrective_actions": [ "string" ], "status": "draft", "resolution_date": "2026-07-14T19:53:34.712Z" }'TypeScript
import { EvalGuard } from "@evalguard/sdk";
const client = new EvalGuard({ apiKey: process.env.EVALGUARD_API_KEY });
const response = await client.request({
method: "PATCH",
path: "/api/v1/privacy/incidents/{id}",
body: {
"root_cause": "string",
"corrective_actions": [
"string"
],
"status": "draft",
"resolution_date": "2026-07-14T19:53:34.712Z"
},
});
console.log(response);Python
from evalguard import EvalGuard
import os
client = EvalGuard(api_key=os.environ["EVALGUARD_API_KEY"])
response = client.request(
method="PATCH",
path="/api/v1/privacy/incidents/{id}",
body={
"root_cause": "string",
"corrective_actions": [
"string"
],
"status": "draft",
"resolution_date": "2026-07-14T19:53:34.712Z"
},
)
print(response)Go
package main
import (
"context"
"fmt"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{"root_cause":"string","corrective_actions":["string"],"status":"draft","resolution_date":"2026-07-14T19:53:34.712Z"}`)
req, _ := http.NewRequestWithContext(context.Background(), "PATCH", "https://evalguard.ai/api/v1/privacy/incidents/{id}", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
fmt.Println(resp.Status)
}