DemistoUploadFileV2
Cortex REST API Pack.#
This Script is part of theDeprecated
Use UploadFile instead.
Copies a file from this incident to the specified incident. The file is recorded as an entry in the specified incident’s War Room.
#
Script DataName | Description |
---|---|
Script Type | python3 |
Tags | DemistoAPI |
Cortex XSOAR Version | 5.0.0 |
#
DependenciesThis script uses the following commands and scripts.
- core-api-multipart
#
InputsArgument Name | Description |
---|---|
entryID | File entry ID |
incidentID | Incident ID to upload the file to |
body | Request body |
target | Where to upload the file - Available options are: - `war room entry`: the file will be uploaded as war room entry. - `incident attachment`: the file will be uploaded as incident attachment. - default are `war room entry` |
#
OutputsThere are no outputs for this script.
#
TroubleshootingMulti-tenant environments should be configured with the Cortex Rest API instance when using this automation. Make sure the Use tenant parameter (in the Cortex Rest API integration) is checked to ensure that API calls are made to the current tenant instead of the master tenant.