Update an incident
PATCH
/v1/incidents/{id}
const url = 'https://api.varman.io/v1/incidents/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"title":"Laptop with customer data stolen","description":{},"category":"security","severity":"low","status":"reported","occurredAt":{},"detectedAt":"example","reporterMemberId":{},"reporterName":{},"reporterEmail":{},"ownerMemberId":{},"isPrivacyBreach":true,"personalDataAffected":{},"authorityNotifiedAt":{},"subjectsNotifiedAt":{},"rootCause":{},"lessonsLearned":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/incidents/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "title": "Laptop with customer data stolen", "description": {}, "category": "security", "severity": "low", "status": "reported", "occurredAt": {}, "detectedAt": "example", "reporterMemberId": {}, "reporterName": {}, "reporterEmail": {}, "ownerMemberId": {}, "isPrivacyBreach": true, "personalDataAffected": {}, "authorityNotifiedAt": {}, "subjectsNotifiedAt": {}, "rootCause": {}, "lessonsLearned": {} }'Updates only the fields sent; null clears optional fields. A status change adds a timeline entry; closing sets closedAt.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
title
Short summary
string
Example
Laptop with customer data stolendescription
What happened
object
category
Defaults to security
string
severity
Defaults to medium
string
status
Defaults to reported
string
occurredAt
When it happened (ISO date)
object
detectedAt
When it was detected (ISO date). Defaults to now.
string
reporterMemberId
Member who reported it
object
reporterName
Reporter name when not a member
object
reporterEmail
Reporter email when not a member
object
ownerMemberId
Member who owns the response
object
isPrivacyBreach
Personal data breach. Starts a 72 hour clock from detectedAt to notify the supervisory authority (GDPR Art. 33).
boolean
personalDataAffected
Personal data and people affected
object
authorityNotifiedAt
When the authority was notified
object
subjectsNotifiedAt
When affected people were notified
object
rootCause
object
lessonsLearned