Batch delete incidents

Cortex XSOAR API

post /incident/batchDelete Show code example
CURL
curl -X POST \ -H "Authorization: [[apiKey]]" \ -H "Accept: application/json" \ -H "Content-Type: application/json,application/xml" \ "https://hostname:443/incident/batchDelete" \ -d '{ "all" : true, "filter" : { "parent" : [ "parent", "parent" ], "reason" : [ "reason", "reason" ], "notInvestigation" : [ "notInvestigation", "notInvestigation" ], "totalOnly" : true, "type" : [ "type", "type" ], "fromActivatedDate" : "2000-01-23T04:56:07.000+00:00", "notCategory" : [ "notCategory", "notCategory" ], "fromDateLicense" : "2000-01-23T04:56:07.000+00:00", "andOp" : true, "searchAfterElastic" : [ "searchAfterElastic", "searchAfterElastic" ], "searchBefore" : [ "searchBefore", "searchBefore" ], "details" : "details", "id" : [ "id", "id" ], "toActivatedDate" : "2000-01-23T04:56:07.000+00:00", "period" : { "fromValue" : "fromValue", "toValue" : "toValue", "byFrom" : "byFrom", "field" : "field", "by" : "by", "byTo" : "byTo" }, "searchAfterMapOrder" : { "key" : 6 }, "level" : [ null, null ], "query" : "query", "notStatus" : [ null, null ], "sort" : [ { "asc" : true, "field" : "field", "fieldType" : "fieldType" }, { "asc" : true, "field" : "field", "fieldType" : "fieldType" } ], "users" : [ "users", "users" ], "fromDate" : "2000-01-23T04:56:07.000+00:00", "size" : 1, "fromReminder" : "2000-01-23T04:56:07.000+00:00", "name" : [ "name", "name" ], "files" : [ "files", "files" ], "searchAfter" : [ "searchAfter", "searchAfter" ], "fromClosedDate" : "2000-01-23T04:56:07.000+00:00", "page" : 0, "fields" : [ "fields", "fields" ], "Cache" : { "key" : [ "Cache", "Cache" ] }, "status" : [ null, null ], "ignoreWorkers" : true, "filterobjectquery" : "filterobjectquery", "urls" : [ "urls", "urls" ], "systems" : [ "systems", "systems" ], "includeTmp" : true, "toClosedDate" : "2000-01-23T04:56:07.000+00:00", "searchAfterMap" : { "key" : [ "searchAfterMap", "searchAfterMap" ] }, "toDueDate" : "2000-01-23T04:56:07.000+00:00", "fromDueDate" : "2000-01-23T04:56:07.000+00:00", "searchBeforeElastic" : [ "searchBeforeElastic", "searchBeforeElastic" ], "toDate" : "2000-01-23T04:56:07.000+00:00", "trim_events" : 5, "toReminder" : "2000-01-23T04:56:07.000+00:00", "timeFrame" : 5, "investigation" : [ "investigation", "investigation" ], "accounts" : { "key" : "{}" }, "category" : [ "category", "category" ] }, "CustomFields" : { "key" : "{}" }, "overrideInvestigation" : true, "closeNotes" : "closeNotes", "data" : { "key" : "{}" }, "columns" : [ "columns", "columns" ], "line" : "line", "ids" : [ "ids", "ids" ], "force" : true, "originalIncidentId" : "originalIncidentId", "closeReason" : "closeReason" }' \ -d ' UNDEFINED_EXAMPLE_VALUE true aeiou aeiou aeiou UNDEFINED_EXAMPLE_VALUE true aeiou aeiou aeiou true '
Deletes an incidents batch