lib/slack/web/api/endpoints/conversations_canvases.rb
# 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