stack kb cases add-case-file cli command
Auth required
elastic stack kb cases add-case-file --case-id <case-id> --file <file> [options]
Attach a file to a case
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--case-idstringrequired- The caseId parameter
--filestringrequired- The file being attached to the case.
--filenamestring- The desired name of the file being attached to the case, it can be different than the name of the file in the filesystem. This should not include the file extension.
--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--no-validate- skip input validation and send the request as-is
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON