Skip to main content

Toggle Incident Report Status

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


Description

This endpoint toggles the status of a specific incident report. It allows updating the status of the report to one of the predefined values (e.g., "PENDING", "RESOLVED").


🔑 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

{
"userId": "string",
"status": "PENDING"
}

Response: 200

{
"message": "Incident report status updated successfully.",
"incidentReportId": "12345",
"newStatus": "RESOLVED"
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


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

RESPONSE


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