Slack. Web. Admin. Teams. Settings
(SlackKit v1.0.0-alpha.0)
View Source
Summary
Functions
Fetch information about settings in a workspace
Set the default channels of a workspace.
Set the description of a given workspace.
An API method that allows admins to set the discoverability of a given workspace
Sets the icon of a workspace.
Set the name of a given workspace.
Functions
Fetch information about settings in a workspace
API reference
Rate limit: Tier 3: 50+ per minute
Scopes:
- User token:
admin.teams:read
Required Params
team_id-
Errors the API can return:
failed_to_fetch_info- There was an error fetching info for this workspace.feature_not_enabled- The Admin APIs feature is not enabled for this team.team_not_found- Theteam_idwas not found.
See the Common Errors guide for errors returned by every Web API method.
Set the default channels of a workspace.
API reference
Rate limit: Tier 2: 20+ per minute
Scopes:
- User token:
admin.teams:write
Required Params
channel_ids- An array of channel IDs.team_id- ID for the workspace to set the default channel for.
Errors the API can return:
failed_to_set_default_channels- We encountered an error while trying to set the default channel.feature_not_enabled- The Admin APIs feature is not enabled for this team.not_an_admin- This method is only accessible by org owners and admins.one_or_more_invalid_channels- One or more of the passed channel IDs was invalid.restricted_action- The actor does not have admin permissions for the team in contextteam_not_found-team_idwas not found.
See the Common Errors guide for errors returned by every Web API method.
Set the description of a given workspace.
API reference
Rate limit: Tier 2: 20+ per minute
Scopes:
- User token:
admin.teams:write
Required Params
description- The new description for the workspace.team_id- ID for the workspace to set the description for.
Errors the API can return:
failed_to_set_description- There was an error setting the description.feature_not_enabled- The Admin APIs feature is not enabled for this team.team_not_found- The requestedteam_idcan't be found.
See the Common Errors guide for errors returned by every Web API method.
An API method that allows admins to set the discoverability of a given workspace
API reference
Rate limit: Tier 2: 20+ per minute
Scopes:
- User token:
admin.teams:write
Required Params
discoverability- This workspace's discovery setting. It must be set to one ofopen,invite_only,closed, orunlisted.team_id- The ID of the workspace to set discoverability on.
Errors the API can return:
discoverability_setting_invalid- The discovery setting must be set to one ofopen,invite_only,closed, orunlisted.failed_to_set_discoverability- There was an error setting the discoverability of this workspace.feature_not_enabled- The Admin APIs feature is not enabled for this team.team_not_found- Theteam_idwas not found.
See the Common Errors guide for errors returned by every Web API method.
Sets the icon of a workspace.
API reference
Rate limit: Tier 2: 20+ per minute
Scopes:
- User token:
admin.teams:write
Required Params
image_url- Image URL for the icon ex:http://mysite.com/icon.jpegteam_id- ID for the workspace to set the icon for.
Errors the API can return:
failed_to_set_icon- Setting the url in the database failed. This may be transient, please try again soon.feature_not_enabled- The Admin APIs feature is not enabled for this team.invalid_url- Invalid url.not_an_admin- This method is only accessible by org owners and admins.team_not_found-team_idwas not found.
See the Common Errors guide for errors returned by every Web API method.
Set the name of a given workspace.
API reference
Rate limit: Tier 3: 50+ per minute
Scopes:
- User token:
admin.teams:write
Required Params
name- The new name of the workspace.team_id- ID for the workspace to set the name for.
Errors the API can return:
failed_to_set_name- Returned when there is an error to set the namefeature_not_enabled- The Admin APIs feature is not enabled for this team.team_not_found- Returned when team_id can’t be resolved
See the Common Errors guide for errors returned by every Web API method.