setChannel

abstract fun setChannel(channelId: String, classVersion: Int): SetChannel

Replaces a channel in full. Optional fields are set via the returned builder.

Every mutable field is overwritten. Omitting status or payload clears the stored value rather than preserving it, so a read-modify-write must send back every field it wants to keep. Use updateChannel to change part of a channel.

Parameters

channelId

Identifier of the channel to replace.

classVersion

Version of the class the payload conforms to.