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

# stack kb uptime put-uptime-settings cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb uptime put-uptime-settings [options]
```

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

## Options

<definitions>
  <definition term="--cert-age-threshold number">
    The number of days after a certificate is created to trigger an alert.
  </definition>
  <definition term="--cert-expiration-threshold number">
    The number of days before a certificate expires to trigger an alert.
  </definition>
  <definition term="--default-connectors string[]">
    A list of connector IDs to be used as default connectors for new alerts.
    **Repeatable:** pass `--default-connectors` multiple times to supply more than one value
  </definition>
  <definition term="--default-email string">
    The default email configuration for new alerts.
  </definition>
  <definition term="--heartbeat-indices string">
    An index pattern string to be used within the Uptime app and alerts to query Heartbeat data.
  </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>