changeIncidentStatus
This method changes the status of an incident.
Important
You must have a license that includes access to incidents to use this method.
Parameters
Parameter | Type | Optional | Description |
|---|---|---|---|
| String | No | The type of the target incident. Possible values:
|
| String | No | The ID of the incident, obtained from the Event Push details. The value corresponds to the TipYou can get the ID of a specific incident form GravityZone Control Center by following these steps:
|
| Integer | No | The status to be assigned to the incident. Possible values:
|
These are common parameters, available across all public API methods:
Parameter | Description | Included in request | Type | Values |
|---|---|---|---|---|
| This parameter adds an identifier to the request, linking it to its corresponding response. The target replies with the same value in the response, allowing easy call tracking. | Mandatory | String | No additional requirements. |
| The name of the method you are using to send the request. | Mandatory | String | Must be a valid method name. |
| The version of JSON-RPC used by the request and the response. | Mandatory | String | The only possible value is |
| An object containing the configuration of the request. | Mandatory | Object | No additional requirements. |
Return value
This method returns a Boolean which is true if the status of the targeted incident is changed successfully.
Note
This method will still return a
truevalue if the target incident already had the specified status assigned prior to your request.The status of the
#DEMOincident cannot be modified. If you send an API request using its ID, the response will returnfalse.
Example
Request:
{
"params": {
"type": "incidents",
"incidentId": "6245af36b6503a00d07a4e53",
"status": 1
},
"jsonrpc": "2.0",
"method": "changeIncidentStatus",
"id": "0df7568c-59c1-48e0-a31b-18d83e6d9810"
}Response:
{
"id": "0df7568c-59c1-48e0-a31b-18d83e6d9810",
"jsonrpc": "2.0",
"result": true
}