Skip to main content
Version: 5.7.0

SysCreateChannel

Initializes a dynamic or system chat channel. Returns the channelId. Channel type can be "dy" or "sy".

ServiceOperation
chatSYS_CREATE_CHANNEL

Method Parameters

ParameterDescription
channelTypeThe channel type - currently 'dy' and 'sy' are supported.
channelSubIdAn app-defined channel sub id. Only letters, numbers, dashes, and underscores are allowed.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"channelId": "12345:dy:myChatRoom"
},
"status": 200
}