SysUpdateMessage
Updates a system message.
Service | Operation |
---|---|
messaging | SYS_UPDATE_MESSAGE |
Method Parameters
Parameter | Description |
---|---|
msgId | The id of the message to update. |
msgVer | The version of the message. Use -1 to specify latest version. |
contentJson | The new content to write to the message. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var msgId = "msgId1";
var msgVer = 1;
var contentJson = {
"subject": "New features",
"text": "Chat and messaging features coming soon..."
};
var messagingProxy = bridge.getMessagingServiceProxy();
var postResult = messagingProxy.sysUpdateMessage(msgId, msgVer, contentJson);
if (postResult.status == 200) {
// Success!
}
{
"service": "messaging",
"operation": "SYS_UPDATE_MESSAGE",
"data": {
"msgId": "msgId1",
"msgVer": 1,
"contentJson": {
"subject": "New features",
"text": "Chat and messaging features coming soon..."
}
}
}