Skip to main content
Version: 5.7.0

SysUpdateChatMessage

Update the specified chat message. Message can have been from any user (or system). Version provided must match (or pass -1 to bypass version enforcement).

ServiceOperation
chatSYS_UPDATE_CHAT_MESSAGE

Method Parameters

ParameterDescription
channelIdThe channel id of the message.
msgIdThe id of the message to update.
versionThe version of the message. Pass it -1 to bypass version checking.
contentThe replacement content for the message.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"status": 200,
"data": {}
}
Common Error Code

Status Codes

CodeNameDescription
40346INSUFFICIDENT_PERMISSIONSThe channel id provided is invalid.
40595CHAT_MESSASAGE_NOT_FOUNDThe specified message cannot be found
40601RTT_NOT_ENABLEDRTT must be enabled for this feature
40603CHAT_UNRECOGNIZED_CHANNELThe specified channel is invalid
40616CLOUD_CODE_ONLYMethod only available via cloud code