Promote channel members to administrators
POST {{baseUrl}}/chat/users/:userId/channels/:channelId/admins
Promotes members to administrator role in 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
{"admins"=>[{"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"}