Skip to main content

UploadFile

This Script is part of the Cortex REST API Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.5.0 and later.

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 Data#


NameDescription
Script Typepython3
TagsDemistoAPI
Cortex XSOAR Version5.0.0

Dependencies#


This script uses the following commands and scripts.

  • core-api-multipart

Inputs#


Argument NameDescription
entryIDFile entry ID.
incidentIDIncident ID to upload the file to.
bodyRequest body.
targetWhere 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`
usingIntegration instance to use to run the command.

Outputs#


There are no outputs for this script.

Troubleshooting#

Multi-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.