changeIncidentPriority
You can use this method to change the priority of an incident.
Important
You must have a license that includes access to incidents to use this method.
Parameters
Parameter | Description | Included in request | Type | Value requirements |
|---|---|---|---|---|
| The type of the target incident. | Mandatory | String | Possible values:
|
| The internal ID of the incident whose priority you want to modify. Corresponds to the | Mandatory | String | Must be a 24-character hexadecimal string. TipThe value of this parameter can be obtained from GravityZone Control Center as follows:
|
| The priority to be assigned to the incident. | Mandatory | Integer | Possible values:
|
These are common parameters, available across all public API methods:
Parameter | Description | Included in request | Type | Value requirements |
|---|---|---|---|---|
| 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 priority of the targeted incident is changed successfully.
Note
This method will still return a
truevalue if the target incident already had the specified priority assigned prior to your request.The priority of the
#DEMOincident cannot be modified. If you send an API request using its ID, the response will returnfalse.All incident priority changes are tracked in both the Incident history panel and the User activity page from GravityZone Control Center. Actions performed by MDR analysts are attributed to an MDR Service account.
Example
Request:
{
"params": {
"type": "incidents",
"incidentId": "6a56324d89d2462496622cda",
"priority": 3
},
"jsonrpc": "2.0",
"method": "changeIncidentPriority",
"id": "0df7568c-59c1-48e0-a31b-18d83e6d9810"
}Response:
{
"id": "0df7568c-59c1-48e0-a31b-18d83e6d9810",
"jsonrpc": "2.0",
"result": true
}