provider admin.teams.settingsadmin POST /admin.teams.settings.setDefaultChannels
@utdk/slack /admin.teams.settings.setDefaultChannels
admin_teams_settings_setDefaultChannels
Set the default channels of a workspace.

Try it

Authentication
Configure credentials for Slack Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

adminTeamsSettingsSetdefaultchannels
POST/admin.teams.settings.setDefaultChannels
Set the default channels of a workspace.

Input

required

An array of channel IDs.

required

ID for the workspace to set the default channel for.

required

Authentication token. Requires scope: `admin.teams:write`

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.adminTeamsSettingsSetdefaultchannels()