﻿---
title: stack kb security-lists-api patch-list-item cli command
description: Patch a value list item Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/474/cli/stack/kb/security-lists-api/patch-list-item
---

# stack kb security-lists-api patch-list-item cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-lists-api patch-list-item --id <id> [options]
```

Patch a value list item
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--id string required">
    Value list item's identifier.
  </definition>
  <definition term="--version string">
    The version id, normally returned by the API when the document is retrieved. Use it ensure updates are done against the latest version.
  </definition>
  <definition term="--meta string">
    Placeholder for metadata about the value list item.
  </definition>
  <definition term="--refresh string">
    Determines when changes made by the request are made visible to search.
  </definition>
  <definition term="--value string">
    The value used to evaluate exceptions.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

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