﻿---
title: stack kb security-exceptions-api update-exception-list cli command
description: Update an exception list Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4118/reference/elastic-cli/cli/stack/kb/security-exceptions-api/update-exception-list
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-exceptions-api update-exception-list cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-exceptions-api update-exception-list \
  --description <description> \
  --name <name> \
  --type <type> \
  [options]
```

Update an exception list
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--description string required">
  </definition>
  <definition term="--name string required">
  </definition>
  <definition term="--type enum required">
    **Values:** detection, rule_default, endpoint, endpoint_trusted_apps, endpoint_trusted_devices, endpoint_events, endpoint_host_isolation_exceptions, endpoint_blocklists, endpoint_custom_yara_signatures
  </definition>
  <definition term="--version string">
    The version id, normally returned by the API when the item was retrieved. Use it ensure updates are done against the latest version.
  </definition>
  <definition term="--id string">
  </definition>
  <definition term="--list-id string">
  </definition>
  <definition term="--meta string">
  </definition>
  <definition term="--namespace-type enum">
    **Values:** agnostic, single
  </definition>
  <definition term="--os-types string[]">
    **Repeatable:** pass `--os-types` multiple times to supply more than one value
  </definition>
  <definition term="--tags string[]">
    **Repeatable:** pass `--tags` multiple times to supply more than one value
  </definition>
  <definition term="--x-version number">
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>