Create Channels
- Print
- DarkLight
- PDF
Create Channels
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Create a public channel.
Method | Requires Auth | Permission |
---|---|---|
| Yes |
|
Payload parameters
Argument | Example | Required | Description |
---|---|---|---|
|
| Required | The name of the channel. |
|
| Optional; Default: | An array of usernames, represented as strings, for the users designated to be included in the channel. If the array is empty, only the user making the request to this method will be added to the channel. |
|
| Optional; Default: | Set if the channel is read-only or not. The value must be boolean. |
Example call
{
"msg": "method",
"method": "createChannel",
"id": "2",
"params": [
"test-websocket",
["doe.john"],
false
]
}
Example response
{
"msg": "result",
"id": "2",
"result": [
{ "rid": "BBkfgYT2azf7RPTTg" }
]
}
Was this article helpful?