Skip to main content

Create Incident Report

Method: POST
/api/v1/incident-reports


Description

This endpoint allows the creation of a new incident report. It captures information about the incident, such as its name, description, related documents, and resolution details.


🔑 Authentication

This endpoint requires authentication via headers.

ParamValueType
userId{{userId}}string
countryCode{{countryCode}}string (optional)
tenantId{{tenantId}}string (optional)

Request Body

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

Request Body Explanation

NameTypeDescription
documentsarrayA list 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 unique tracking ID for the incident.
resolutionPeriodnumberThe number of days or hours required to resolve the incident.
resolutionPeriodTypestringThe unit for the resolution period (DAYS or HOURS).
incidentModelIdstringThe unique ID of the incident model associated with the report.
incidentModelTypestringThe type of incident model (e.g., TRADE, LOGISTICS).
userIdstringThe ID of the user submitting the incident report.
countryCodestringThe country code where the incident occurred.
tenantIdstringThe ID of the tenant associated with the incident.

Sample Response: 201 Created

{
"message": "Incident report created successfully.",
"incidentId": "incident123",
"incidentName": "Product Delay",
"trackingId": "track456",
"status": "OPEN",
"createdAt": "2025-02-12T04:04:39.986Z"
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /api/v1/incident-reports \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


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