Manually create a new Cortex XSOAR incident or update an existing one.
To update an existing incident, you must update the version
parameter. For more information on updating the version
parameter, see Optimistic locking and versioning.
To update incident custom fields, they must be in lowercase and without spaces. For example, "Scan IP" should be "scanip".
To get the actual key name, you can go to Cortex XSOAR CLI and run /incident_add
and look for the key that you would like to update.
Use createInvestigation: true
to start the investigation process automatically upon creating the new incident. This will also run the appropriate playbook based on the incident type.
Authorization
String
required
authorization_example
x-xdr-auth-id
String
required
xXdrAuthId_example
closeNotesString
Notes for closing the incident.
closeReasonString
The reason for closing the incident (select from existing predefined values).
closedStringdate-time
Use createInvestigation: true
to start the investigation process automatically upon creating the new incident. This will also run the appropriate playbook based on the incident type.
Use 'createInvestigation: false
createInvestigationBoolean
Use createInvestigation: true
to start the investigation process automatically upon creating the new incident. This will also run the appropriate playbook based on the incident type.
detailsString
The details of the incident.
labelsArray
Labels related to incident - each label is composed of a type and value
typeString
valueString
modifiedStringdate-time
Date modified.
nameString
Incident name.
playbookIdString
The associated playbook for this incident.
rawJSONString
reasonString
The reason an incident was closed.
severityNumberdouble
Severity is the incident severity
2
slaNumberdouble
SLAState is the incident SLA at closure time, in minutes.
statusNumberdouble
IncidentStatus is the status of the incident
2
typeString
Incident type.
"Unclassified"
{
"severity": 2,
"reason": "reason",
"closeNotes": "closeNotes",
"sla": 0.8008281904610115,
"rawJSON": "rawJSON",
"type": "Unclassified",
"createInvestigation": true,
"labels": [
{
"type": "type",
"value": "value"
},
{
"type": "type",
"value": "value"
}
],
"playbookId": "playbookId",
"name": "name",
"closed": "2000-01-23T04:56:07.000+00:00",
"modified": "2000-01-23T04:56:07.000+00:00",
"details": "details",
"closeReason": "closeReason",
"status": 2
}
{
"details": "My test incident",
"name": "My test incident",
"severity": 2,
"type": "Unclassified"
}
curl -X 'POST'
-H
'Accept: application/json'
-H
'Content-Type: application/json'
-H
'Authorization: authorization_example'
-H
'x-xdr-auth-id: xXdrAuthId_example'
'https://api-yourfqdn/xsoar/public/v1/incident'
-d
'{
"severity" : 2,
"reason" : "reason",
"closeNotes" : "closeNotes",
"sla" : 0.8008281904610115,
"rawJSON" : "rawJSON",
"type" : "Unclassified",
"createInvestigation" : true,
"labels" : [ {
"type" : "type",
"value" : "value"
}, {
"type" : "type",
"value" : "value"
} ],
"playbookId" : "playbookId",
"name" : "name",
"closed" : "2000-01-23T04:56:07.000+00:00",
"modified" : "2000-01-23T04:56:07.000+00:00",
"details" : "details",
"closeReason" : "closeReason",
"status" : 2
}'