Set Channel Users
set_channel_usersReplace the full list of users assigned to a channel. Every active device of each listed user receives deliveries sent to the channel. Users left out are removed, and sending no users removes them all; individually assigned devices from set_channel_devices are kept. To add one user, call get_channel first and send the existing users plus the new one. Users must belong to the account (see list_account_users). Returns the channel and the resulting list of user emails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Channel slug, such as ops or ios-beta, from list_channels. Provide public_id or slug. | |
| public_id | No | Channel public_id from list_channels. Provide public_id or slug; if you send both, they must match the same channel. | |
| user_emails | No | Emails of account users, from list_account_users. Combined with user_public_ids. | |
| user_public_ids | No | User public IDs, as returned by get_channel. Combined with user_emails. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| success | Yes | ||
| public_id | Yes | ||
| user_emails | Yes |