---
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-06-04** `d1729646b766` — 2 warning
  - added the new `DATA_PROVIDER_ERROR` enum value to the `type` response property for the response status `404`
  - added the new `DATA_PROVIDER_ERROR` enum value to the `type` response property for the response status `500`
- **2026-05-29** `a598446f8093` — 2 info
  - removed the `DATA_PROVIDER_ERROR` enum value from the `type` response property for the response status `404`
  - removed the `DATA_PROVIDER_ERROR` enum value from the `type` response property for the response status `500`
- **2026-05-26** `7cee7b14bf6f` — 2 warning
  - added the new `DATA_PROVIDER_ERROR` enum value to the `type` response property for the response status `404`
  - added the new `DATA_PROVIDER_ERROR` enum value to the `type` response property for the response status `500`
- **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`

[Full 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-service-production.skmtc.workers.dev/v1/apis/agridata/agridata-ch-api/revisions/5760204210ed/schema)
