Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata

PUT {{baseUrl}}/v3/users/:user_id/metadata

Update a user metadata

Updates existing items of a user metadata by their keys, or adds new items to the metadata.

https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata

user_id Type: string Description: Specifies the ID of the user to update the metadata in.

Request Body

{"metadata"=>"<object>", "upsert"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Api-Tokenstring(Required)
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;metadata&quot;:{&quot;cupidatat216&quot;:&quot;\u003cstring\u003e&quot;,&quot;aliqua_65f&quot;:&quot;\u003cstring\u003e&quot;},&quot;upsert&quot;:&quot;\u003cboolean\u003e&quot;}