---
title: "Update uptime settings"
method: PUT
path: "/api/uptime/settings"
tags: ["uptime"]
---

# Update uptime settings

`PUT /api/uptime/settings`

**Spaces method and path for this operation:**

<div><span class="operation-verb put">put</span>&nbsp;<span class="operation-path">/s/{space_id}/api/uptime/settings</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Update uptime setting attributes like `heartbeatIndices`, `certExpirationThreshold`, `certAgeThreshold`, `defaultConnectors`, or `defaultEmail`. You must have `all` privileges for the uptime feature in the Observability section of the Kibana feature privileges. A partial update is supported, provided settings keys will be merged with existing settings.

## Request body

- object
  - `certAgeThreshold` number — The number of days after a certificate is created to trigger an alert.
  - `certExpirationThreshold` number — The number of days before a certificate expires to trigger an alert.
  - `defaultConnectors` string[] — A list of connector IDs to be used as default connectors for new alerts.
  - `defaultEmail` object — The default email configuration for new alerts.
    - `bcc` string[]
    - `cc` string[]
    - `to` string[]
  - `heartbeatIndices` string — An index pattern string to be used within the Uptime app and alerts to query Heartbeat data.

## Response `200`

Indicates a successful call

- object

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
