Skip to main content

Endpoint

This is an app-specific API that updates or creates metadata for a user. The metadata update is performed as a shallow merge.

Request Body

string
required
The ID of the user whose metadata you want to update.
object
required
A JSON object containing the metadata fields to update or add. This will be shallow-merged with existing metadata.

Request Example

Response

string
Always returns "OK"
object
The complete metadata object after the update has been applied.

Response Example

Implementation Details

Source: View source
  • This API requires public tenant access
  • Metadata updates are performed as a shallow merge
    • New fields are added
    • Existing fields are updated
    • Fields not in metadataUpdate remain unchanged
  • User ID mapping is automatically handled for app-specific queries
  • Returns the complete, updated metadata object

Merge Behavior Example

If existing metadata is:
And you send an update:
The resulting metadata will be:

Use Cases

  • Store user preferences and settings
  • Save custom profile information
  • Track user-specific application state
  • Maintain feature flags per user

Get User Metadata

Retrieve existing metadata for a user