---
search:
  tags:
    - User Metadata Recipe
    - PUT
seo:
  description: >-
    Updates the metadata object stored about the user by… Reference for the PUT
    /appid-{appId}/recipe/user/metadata endpoint in the Core Driver Interface
    API.
sidebar:
  badge: PUT
  label: Update user metadata
title: Update user metadata
type: openapi-operation
---
Updates the metadata object stored about the user by doing a shallow merge of the stored and the update JSONs
and removing properties set to null on the root level of the update object. The merged object is then reserialized and stored.

e.g.:
  - stored: `{ "preferences": { "theme":"dark" }, "notifications": { "email": true }, "todos": ["example"] }`

  - update: `{ "notifications": { "sms": true }, "todos": null }`

  - result: `{ "preferences": { "theme":"dark" }, "notifications": { "sms": true } }`

<Operation source="references-cdi" id="usermetadataupdate" />
