---
title: "Update Trend Preferences"
method: PUT
path: "/api/v1/report-ai/trend-preferences"
tags: ["report-ai", "trend-scans"]
---

# Update Trend Preferences

`PUT /api/v1/report-ai/trend-preferences`

Full-replace the current user's trend UI preferences.

## Request body

- TrendPreferencesUpdate
  - `layout` 'flat' | 'grouped'
  - `density` 'comfortable' | 'compact'
  - `sort` 'priority' | 'occurrence' | 'confidence'
  - `show_narrative` boolean
  - `show_routine` boolean

## Response `200`

Successful Response

- TrendPreferencesRead
  - `layout` 'flat' | 'grouped'
  - `density` 'comfortable' | 'compact'
  - `sort` 'priority' | 'occurrence' | 'confidence'
  - `show_narrative` boolean
  - `show_routine` boolean

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-03** `d65b8fefae34` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/report-ai/trend-preferences/put.md)

---

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