Modify channel properties including display name, avatar, tags, and metadata to keep channel information current and relevant
updateChannel
function enables you to modify channel properties dynamically, keeping channel information current and relevant. Update display names, avatars, tags, and metadata with simple API calls that provide immediate feedback and real-time synchronization.
updateChannel
function allows users to modify the properties of a channel. This function is useful in cases where a channel’s details need to be updated, such as changing the channel’s display name or avatar.The function takes a channelId
parameter as a required input, which specifies the channel to be modified. Additionally, users can pass in any number of optional parameters to update the channel’s properties.Parameter | Type | Required | Description |
---|---|---|---|
channelId | String | ✅ | Unique identifier of the channel to update |
displayName | String | ❌ | New display name for the channel |
avatarFileId | String | ❌ | ID of image file for channel avatar |
tags | Array<String> | ❌ | Tags for channel discovery and categorization |
metadata | Object | ❌ | Additional metadata associated with the channel |
metadata
is implemented with last writer wins semantics: multiple mutations by independent users to the metadata object will result in a single stored value. No locking, merging, or other coordination is performed across multiple writes on the data.Partial Updates
Metadata Management
Error Handling