Module: Slack::Web::Api::Endpoints::AdminConversations

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/admin_conversations.rb

Instance Method Summary collapse

Instance Method Details

#admin_conversations_setTeams(options = {}) ⇒ Object

Set the workspaces in an Enterprise grid org that connect to a channel.

Options Hash (options):

  • :channel_id (Object)

    The encoded channel_id to add or remove to workspaces.

  • :org_channel (Object)

    True if channel has to be converted to an org channel.

  • :target_team_ids (Object)

    The list of workspaces to which the channel should be shared. Not required if the channel is being shared orgwide. Example: [‘T1234’, ‘T5678’].

  • :team_id (Object)

    The workspace to which the channel belongs. Omit this argument if the channel is a cross-workspace shared channel.

See Also:



22
23
24
25
# File 'lib/slack/web/api/endpoints/admin_conversations.rb', line 22

def admin_conversations_setTeams(options = {})
  throw ArgumentError.new('Required arguments :channel_id missing') if options[:channel_id].nil?
  post('admin.conversations.setTeams', options)
end