Skip to main content

Update Incident Report

Method: PATCH
/api/v1/incident-reports/{id}


Description

This endpoint updates an existing incident report. You can update the incident name, description, documents, tracking details, and resolution period.


🔑 Authentication

This endpoint requires authentication via headers.

ParamValueType
userId{{userId}}string
tenantId{{tenantId}}string

Path Parameter

NameTypeDescription
idstringThe unique ID of the incident report.

Request Body

{
"documents": [
{
"name": "string",
"link": "string"
}
],
"incidentName": "string",
"description": "string",
"trackingId": "string",
"resolutionPeriod": 0,
"resolutionPeriodType": "DAYS",
"userId": "string",
"countryCode": "string",
"tenantId": "string"
}

Request Body Explanation

NameTypeDescription
documentsarrayList of documents related to the incident report.
documents[].namestringThe name of the document.
documents[].linkstringA URL linking to the document.
incidentNamestringThe name of the incident.
descriptionstringA detailed description of the incident.
trackingIdstringA tracking ID associated with the incident report.
resolutionPeriodnumberThe time period for resolving the incident.
resolutionPeriodTypestringThe unit of time for the resolution period (e.g., "DAYS").
userIdstringThe ID of the user updating the incident report.
countryCodestringThe country code associated with the incident report.
tenantIdstringThe ID of the tenant associated with the incident report.

Response: 200

{
"message": "Incident report updated successfully.",
"incidentId": "12345",
"updatedFields": {
"incidentName": "System Outage",
"description": "System outage due to power failure.",
"resolutionPeriod": 2,
"resolutionPeriodType": "DAYS"
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PATCH \ 
--url /api/v1/incident-reports/{id} \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!