---
title: "Update metrics history retention setting"
method: POST
path: "/global-settings/history"
tags: ["Host Metrics"]
---

# Update metrics history retention setting

`POST /global-settings/history`

## Request body

- object
  - `metricsHistoryRetentionDays` integer

## Response `200`

Setting saved.

## Other responses

- `400` — Invalid value.
- `403` — Requires admin privileges.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
