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-05-29T20:54:19.749Z"
}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-05-29T20:54:19.749Z" }'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-05-29T20:54:19.749Z"
},
});
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-05-29T20:54:19.749Z"
},
)
print(response)Go
package main
import (
"context"
"fmt"
"os"
"github.com/evalguard/evalguard-go"
)
func main() {
client := evalguard.NewClient(os.Getenv("EVALGUARD_API_KEY"))
resp, err := client.Request(context.Background(), "PATCH", "/api/v1/privacy/incidents/{id}", map[string]any{"root_cause": "string", "corrective_actions": []any{"string"}, "status": "draft", "resolution_date": "2026-05-29T20:54:19.749Z"})
if err != nil { panic(err) }
fmt.Println(resp)
}