Users

Update User Preferences

Changed on

updates preferences for the currently authenticated user.

put/api/user/v1/preferences

Request

  • The document declares no server URL.
  • Auth
    OpenID Connect (http://localhost:6999/realms/agate/.well-known/openid-configuration, scopes: agridata.ch.Agridata_Einwilliger, agridata.ch.Agridata_Datenbezueger, agridata.ch.Agridata_Admin, agridata.ch.Agridata_Support, agridata.ch.Agridata_Datenanbieter)

Request body

mainMenuOpenedboolean

If the main menu is opened or closed.

activeUidstring

the active uid of the producer

dismissedMigratedIdsstring[]

consent request ids for which we dont want to show migration notices anymore

hasSeenConsentRequestTourIntroboolean

Indicates whether the user has already seen the consent request feature tour introduction.

Example request

{
  "mainMenuOpened": true,
  "activeUid": "CHE123456789",
  "dismissedMigratedIds": [
    "a5b1d2e3-4f6a-2b7c-6d0e-9f1a3b5c7d9e"
  ],
  "hasSeenConsentRequestTourIntro": true
}

Response

No Content

Changes

    • warning

      added the new EXPORT_CAPACITY_EXHAUSTED enum value to the response property for the response status

    • warning

      added the new EXPORT_CAPACITY_EXHAUSTED enum value to the response property for the response status

    • warning

      added the new EXPORT_LIMIT_EXCEEDED enum value to the response property for the response status

    • warning

      added the new EXPORT_LIMIT_EXCEEDED enum value to the response property for the response status

    • warning

      added the new UID_CLAIM_MISSING enum value to the response property for the response status

    • warning

      added the new UID_CLAIM_MISSING enum value to the response property for the response status