Invite channel members

POST {{baseUrl}}/chat/users/:userId/channels/:channelId/members

Invites members that are in a user's contact list to a channel. For user-level apps, pass the me value instead of the userId parameter.

Scopes: chat_channel:write:admin
Rate Limit Label : Medium

Note: For an account-level OAuth app , this API can only be used on behalf of a user who is assigned with a role that has the Edit permission for Chat Channels .

Request Body

{"members"=>[{"email"=>"<email>"}, {"email"=>"<email>"}]}

HEADERS

| Key | Datatype | Required | Description | | Content-Type | string | | | | Accept | string | | |

RESPONSES

status: Created

{"added_at":"\u003cdateTime\u003e","ids":"\u003cstring\u003e","member_ids":"\u003cstring\u003e"}