﻿---
title: stack kb security-timeline-api patch-timeline cli command
description: Update a Timeline Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4116/reference/elastic-cli/cli/stack/kb/security-timeline-api/patch-timeline
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-timeline-api patch-timeline cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-timeline-api patch-timeline \
  --timeline <timeline> \
  --timeline-id <timeline-id> \
  --version <version> \
  [options]
```

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

## Options

<definitions>
  <definition term="--timeline string required">
    The timeline object of the Timeline or Timeline template that you’re updating.
  </definition>
  <definition term="--timeline-id string required">
    The `savedObjectId` of the Timeline or Timeline template that you’re updating.
  </definition>
  <definition term="--version string required">
    The version of the Timeline or Timeline template that you’re updating.
  </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>