channels

Add user(s) to channel

Add a user(s) to a channel by creating a channel member object(s).

post/api/v4/channels/{channel_id}/members

Path parameters

channel_idstring required

The channel ID

Request body

user_idstring

The ID of user to add into the channel, for backwards compatibility.

user_idsstring[]

The IDs of users to add into the channel, required if 'user_id' doess not exist.

post_root_idstring

The ID of root post where link to add channel member originates

Response

Channel member creation successful

channel_idstring
user_idstring
rolesstring
last_viewed_atinteger

The time in milliseconds the channel was last viewed by the user

msg_countinteger
mention_countinteger
last_update_atinteger

The time in milliseconds the channel member was last updated

Changes

No recorded changes to this endpoint across all 1 revision of this API.