Actions13
- Message Actions
- History Actions
- Presence Actions
- Channel Group Actions
Channel Group → Add Channels
AI-generatedSummary
Adds the specified channels to a PubNub channel group.
Inputs
- channelGroup (required) — Name of the channel group
- channels (required) — Comma-separated list of channel names to add
Output shape
object
Returns the PubNub API response from the addChannels endpoint (status and any returned data).
Examples
Example 1: Add channels 'news' and 'sports' to group 'alerts'
channelGroup='alerts', channels='news,sports' → PubNub addChannels request executed