---
title: "Save the Host Metrics layout for a host"
method: POST
path: "/host-metrics/preferences/{id}"
tags: ["Host Metrics"]
---

# Save the Host Metrics layout for a host

`POST /host-metrics/preferences/{id}`

Persists the current user's card layout for the host and keeps statsConfig.enabledWidgets in sync (for hosts the user owns) so the mobile app keeps working.

## Path parameters

- `id` integer, required

## Request body

- object
  - `slots` unknown[]
    - unknown
  - `columns` integer

## Response `200`

Layout saved.

## Other responses

- `400` — Invalid layout.
- `403` — No access to this host.

---

[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)
