Module: Slack::Web::Api::Endpoints::ConversationsCanvases

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

Instance Method Summary collapse

Instance Method Details

#conversations_canvases_create(options = {}) ⇒ Object

Create a Channel Canvas for a channel.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :channel_id (string)

    Channel ID of the channel we create the channel canvas for.

  • :document_content (Object)

    Structure describing the type and value of the content to create.

Raises:

  • (ArgumentError)

See Also:



18
19
20
21
# File 'lib/slack/web/api/endpoints/conversations_canvases.rb', line 18

def conversations_canvases_create(options = {})
  raise ArgumentError, 'Required arguments :channel_id missing' if options[:channel_id].nil?
  post('conversations.canvases.create', options)
end