﻿---
title: stack kb cases update-case-configuration cli command
description: Update case settings Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4948/reference/elastic-cli/cli/stack/kb/cases/update-case-configuration
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb cases update-case-configuration cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb cases update-case-configuration \
  --configuration-id <configuration-id> \
  --version <version> \
  [options]
```

Update case settings
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--configuration-id string required">
    An identifier for the configuration.
  </definition>
  <definition term="--version string required">
    The version of the connector. To retrieve the version value, use the get configuration API.
  </definition>
  <definition term="--closure-type enum">
    **Values:** close-by-pushing, close-by-user
  </definition>
  <definition term="--connector string">
    An object that contains the connector configuration.
  </definition>
  <definition term="--custom-fields string[]">
    Custom fields case configuration. Deprecated. Use the field library (`/api/cases/field_definitions`) to manage field definitions and `extended_fields` on case create/update to set field values.
    **Repeatable:** pass `--custom-fields` multiple times to supply more than one value
  </definition>
  <definition term="--extract-observables">
    Indicates whether observables (for example, IPs, hashes, and URLs) are automatically extracted from case comments and events. Observable extraction is available only for Security cases. For Stack and Observability cases, changing it to `true` returns a 400 error. A request that keeps an already stored `true` is accepted.
  </definition>
  <definition term="--templates string[]">
    **Repeatable:** pass `--templates` multiple times to supply more than one value
  </definition>
  <definition term="--workflow-tags string[]">
    Workflow tags that limit which workflows appear in Cases workflow selectors. An empty array shows all workflows.
    **Repeatable:** pass `--workflow-tags` multiple times to supply more than one value
  </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>
  <definition term="--no-validate">
    skip input validation and send the request as-is
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--output-fields string">
    comma-separated list of fields to include in output (dot-notation supported)
  </definition>
  <definition term="--output-template string">
    Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
  </definition>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>