Sha256: 46d08cc3ad17492afa0e63626cb0d75a3426c4669bae501340cdd8ca2b486734

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Web
    module Api
      module Endpoints
        module Migration
          #
          # For Enterprise Grid workspaces, map local user IDs to global user IDs
          #
          # @option options [array] :users
          #   A comma-separated list of user ids, up to 400 per request.
          # @option options [string] :team_id
          #   Specify team_id starts with T in case of Org Token.
          # @option options [boolean] :to_old
          #   Specify true to convert W global user IDs to workspace-specific U IDs. Defaults to false.
          # @see https://api.slack.com/methods/migration.exchange
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/migration/migration.exchange.json
          def migration_exchange(options = {})
            raise ArgumentError, 'Required arguments :users missing' if options[:users].nil?
            post('migration.exchange', options)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 lib/slack/web/api/endpoints/migration.rb
slack-ruby-client-2.3.0 lib/slack/web/api/endpoints/migration.rb
slack-ruby-client-2.2.0 lib/slack/web/api/endpoints/migration.rb
slack-ruby-client-2.1.0 lib/slack/web/api/endpoints/migration.rb
slack-ruby-client-2.0.0 lib/slack/web/api/endpoints/migration.rb