Usergroups

Admin Usergroups Add Channels

POST
/admin.usergroups.addChannels

Add one or more default channels to an IDP group.

Authorization

slackAuth admin.usergroups:write
AuthorizationBearer <token>

In: header

Scope: admin.usergroups:write

Header Parameters

token*string

Authentication token. Requires scope: admin.usergroups:write

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Request Body

application/x-www-form-urlencoded

usergroup_id*string

ID of the IDP group to add default channels for.

team_id?string

The workspace to add default channels in.

channel_ids*string

Comma separated string of channel IDs.

Response Body

application/json

application/json

curl -X POST "https://example.com/admin.usergroups.addChannels" \  -H "token: string" \  -H "Content-Type: application/x-www-form-urlencoded" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'usergroup_id=string&channel_ids=string'
{  "ok": "True"}