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

---

[API](https://skmtc.net/agridata/apis/agridata-ch-api.md) · [All operations](https://skmtc.net/agridata/apis/agridata-ch-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agridata/agridata-ch-api/revisions/c478ae39b261/schema)
