Module: Slack::Web::Api::Endpoints::AdminWorkflowsTriggersTypesPermissions

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

Instance Method Summary collapse

Instance Method Details

#admin_workflows_triggers_types_permissions_lookup(options = {}) ⇒ Object

list the permissions for using each trigger type in workflow builder

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :trigger_type_ids (array)

    The trigger types IDs for which to get the permissions.

Raises:

  • (ArgumentError)

See Also:



16
17
18
19
# File 'lib/slack/web/api/endpoints/admin_workflows_triggers_types_permissions.rb', line 16

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

#admin_workflows_triggers_types_permissions_set(options = {}) ⇒ Object

Set the permissions for using a trigger type in workflow builder

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :id (Object)

    The trigger type ID for which to set the permissions.

  • :visibility (enum)

    The function visibility.

  • :user_ids (array)

    List of user IDs to allow for named_entities visibility.

Raises:

  • (ArgumentError)

See Also:



32
33
34
35
36
# File 'lib/slack/web/api/endpoints/admin_workflows_triggers_types_permissions.rb', line 32

def admin_workflows_triggers_types_permissions_set(options = {})
  raise ArgumentError, 'Required arguments :id missing' if options[:id].nil?
  raise ArgumentError, 'Required arguments :visibility missing' if options[:visibility].nil?
  post('admin.workflows.triggers.types.permissions.set', options)
end