setChannel

abstract fun setChannel(channelId: String, classVersion: Int, status: String? = null, payload: Any? = null, ifMatch: String? = null): SetChannel

Replaces a channel in full.

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.

status

Optional status to store with the channel.

payload

Optional replacement channel fields (arbitrary JSON object).

ifMatch

Optional eTag last read, to fail the request when the channel changed since (If-Match header).