---
title: "Update User Preferences"
method: PUT
path: "/api/user/v1/preferences"
tags: ["Users"]
---

# Update User Preferences

`PUT /api/user/v1/preferences`

updates preferences for the currently authenticated user.

## Request body

- UserPreferencesDto
  - `mainMenuOpened` boolean — If the main menu is opened or closed.
  - `activeUid` string — the active uid of the producer
  - `dismissedMigratedIds` string[] — consent request ids for which we dont want to show migration notices anymore
  - `hasSeenConsentRequestTourIntro` boolean — Indicates whether the user has already seen the consent request feature tour introduction.

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Not Authorized
- `403` — Not Allowed
- `404` — The resource or element was not found
- `500` — Internal server error: unexpected error

## Changes

- **2026-05-12** `5b038eea902d` — 8 warning
  - added the new `OTP_EXPIRED` enum value to the `type` response property for the response status `404`
  - added the new `OTP_EXPIRED` enum value to the `type` response property for the response status `500`
  - added the new `OTP_INVALID` enum value to the `type` response property for the response status `404`
  - added the new `OTP_INVALID` enum value to the `type` response property for the response status `500`
  - …4 more
- **2026-02-25** `8042d371f70e` — 1 info
  - added the new optional request property `hasSeenConsentRequestTourIntro`
- **2026-02-09** `0d45567e16a8` — 2 warning
  - added the new `CONSENT_NOT_GRANTED` enum value to the `type` response property for the response status `404`
  - added the new `CONSENT_NOT_GRANTED` enum value to the `type` response property for the response status `500`
- **2025-11-27** `297b7932dd83` — 1 warning, 1 info
  - removed the request property `dismissedMiratedIds`
  - added the new optional request property `dismissedMigratedIds`
- **2025-11-20** `edd6a83c3b2d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agridata/apis/agridata-ch-api/changes/api/user/v1/preferences/put.md)

---

[API](https://skmtc.dev/agridata/apis/agridata-ch-api.md) · [All operations](https://skmtc.dev/agridata/apis/agridata-ch-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agridata/apis/agridata-ch-api/revisions/8d3fe1ae048f?raw)
