UploadFile
Copies a file from this incident to the specified incident. The file is recorded as an entry in the specified incident’s War Room.
python · Cortex REST API
Details
| ID | UploadFile |
|---|---|
| Language | python |
| From Version | 6.5.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | DemistoAPI |
README
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
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | DemistoAPI |
| Cortex XSOAR Version | 5.0.0 |
Dependencies
This script uses the following commands and scripts.
- core-api-multipart
Inputs
| Argument 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` |
| using | Integration 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.
commonfields: id: UploadFile version: -1 enabled: true name: UploadFile fromversion: 6.5.0 script: '-' args: - description: File entry ID. name: entryID predefined: - '' required: true isArray: true - description: Incident ID to upload the file to. name: incID required: true - description: Integration instance used to run the script. name: using required: false - description: Request body. name: body - auto: PREDEFINED defaultValue: 'war room entry' description: |- 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`. name: target predefined: - 'war room entry' - 'incident attachment' comment: Copies a file from this incident to the specified incident. The file is recorded as an entry in the specified incident’s War Room. subtype: python3 dockerimage: demisto/python3:3.12.13.10404775 tags: - DemistoAPI timeout: '0' type: python dependson: must: - core-api-multipart tests: - No tests (auto formatted)