User Metadata

To add metadata for a user, send the metadata object inside the user object while creating user using Register/Login User API. The same metadata object will be received in User Details API with user object. The metadata object is a map with string keys and values.

Sample User Object JSON with Metadata:

{
 "userId":"DemoUser", 
 "password":"password",
 "displayName":"Display Name",
 "email":"[email protected]",
  "metadata":{
      "key1":"value1",
      "key2":"value2",
      "key3":"value3"}
}

User metadata can be updated from the Update User Details API as below example:

{
 "userId":"DemoUser",
 "metadata":{
      "key1":"updated value1",
      "key2":"updated value2",
      "key3":"updated value3"}
}