Module: Slack::Web::Api::Endpoints::AdminWorkflowsPermissions

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

Instance Method Summary collapse

Instance Method Details

#admin_workflows_permissions_lookup(options = {}) ⇒ Object

Look up the permissions for a set of workflows

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :workflow_ids (array)

    An array of workflow IDs to look up permissions for.

  • :max_workflow_triggers (integer)

    Maximum number of triggers to fetch for each workflow when determining overall run permissions; max 1000.

Raises:

  • (ArgumentError)

See Also:



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

def admin_workflows_permissions_lookup(options = {})
  raise ArgumentError, 'Required arguments :workflow_ids missing' if options[:workflow_ids].nil?
  post('admin.workflows.permissions.lookup', options)
end