Import an incident type

Cortex XSOAR 6 API

post /incidenttypes/import

Import an incident type to Cortex XSOAR.

Authentication: api_key Api Key "Authorization"
Form parameters
file
File
required
format: binary
file
Example: BINARY_DATA_HERE
CURL
curl -X 'POST'
-H "Authorization: [[apiKey]]" \
-H 'Accept: application/json'
-H 'Content-Type: multipart/form-data'
'https://hostname:443/incidenttypes/import'
Responses

The saved incident type

Body
RESPONSE
{ "error": "error_example", "incidentTypes": [ { "autorun": false, "cacheVersn": 0, "closureScript": "closureScript_example", "color": "color_example", "commitMessage": "commitMessage_example", "created": "created_example", "days": 0, "daysR": 0, "default": false, "definitionId": "definitionId_example", "detached": false, "disabled": false, "extractSettings": { "fieldCliNameToExtractSettings": { "additionalProperties": { "extractAsIsIndicatorTypeId": "extractAsIsIndicatorTypeId_example", "extractIndicatorTypesIDs": [ "extractIndicatorTypesIDs_example" ], "isExtractingAllIndicatorTypes": false } }, "mode": "mode_example" }, "fromServerVersion": { "Digits": [ 0 ], "Label": "Label_example" }, "highlight": { "additionalProperties": [ "additionalProperties_example" ] }, "hours": 0, "hoursR": 0, "id": "id_example", "indexName": "indexName_example", "itemVersion": { "Digits": [ 0 ], "Label": "Label_example" }, "layout": "layout_example", "locked": false, "modified": "modified_example", "name": "name_example", "numericId": 0, "onChangeRepAlg": 0.0, "packID": "packID_example", "packName": "packName_example", "packPropagationLabels": [ "packPropagationLabels_example" ], "playbookId": "playbookId_example", "preProcessingScript": "preProcessingScript_example", "prevName": "prevName_example", "primaryTerm": 0, "propagationLabels": [ "propagationLabels_example" ], "readonly": false, "remote": false, "reputationCalc": 0.0, "sequenceNumber": 0, "shouldCommit": false, "sizeInBytes": 0, "sla": 0, "slaReminder": 0, "sortValues": [ "sortValues_example" ], "syncHash": "syncHash_example", "system": false, "toServerVersion": { "Digits": [ 0 ], "Label": "Label_example" }, "vcShouldIgnore": false, "vcShouldKeepItemLegacyProdMachine": false, "version": 0, "weeks": 0, "weeksR": 0 } ] }