Skip to main content
Version: 5.7.0

SysUpdateChatMessage

tip

This method is available in Cloud Code scripts only.

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

Method Parameters

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

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code 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