Sha256: 96a314d899c0d6f9b49ec825c24c4fb26a77c9dd7d7c894249efb597ad03c9df

Contents?: true

Size: 1008 Bytes

Versions: 1

Compression:

Stored size: 1008 Bytes

Contents

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

module Slack
  module Web
    module Api
      module Endpoints
        module ConversationsCanvases
          #
          # Create a Channel Canvas for a channel.
          #
          # @option options [string] :channel_id
          #   Channel ID of the channel we create the channel canvas for.
          # @option options [Object] :document_content
          #   Structure describing the type and value of the content to create.
          # @see https://api.slack.com/methods/conversations.canvases.create
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/conversations.canvases/conversations.canvases.create.json
          def conversations_canvases_create(options = {})
            raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
            post('conversations.canvases.create', options)
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 lib/slack/web/api/endpoints/conversations_canvases.rb