Module: Slack::Web::Api::Endpoints::AdminWorkflowsCollaborators

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

Instance Method Summary collapse

Instance Method Details

#admin_workflows_collaborators_add(options = {}) ⇒ Object

Add collaborators to workflows within the team or enterprise

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :collaborator_ids (array)

    Array of collaborators (encoded user IDs) to add; max 50.

  • :workflow_ids (array)

    Array of workflow IDs to edit; max 50.

Raises:

  • (ArgumentError)

See Also:



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

def admin_workflows_collaborators_add(options = {})
  raise ArgumentError, 'Required arguments :collaborator_ids missing' if options[:collaborator_ids].nil?
  raise ArgumentError, 'Required arguments :workflow_ids missing' if options[:workflow_ids].nil?
  post('admin.workflows.collaborators.add', options)
end

#admin_workflows_collaborators_remove(options = {}) ⇒ Object

Remove collaborators from workflows within the team or enterprise

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :collaborator_ids (array)

    Array of collaborators (encoded user IDs) to remove; max 50.

  • :workflow_ids (array)

    Array of workflow IDs to edit; max 50.

Raises:

  • (ArgumentError)

See Also:



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

def admin_workflows_collaborators_remove(options = {})
  raise ArgumentError, 'Required arguments :collaborator_ids missing' if options[:collaborator_ids].nil?
  raise ArgumentError, 'Required arguments :workflow_ids missing' if options[:workflow_ids].nil?
  post('admin.workflows.collaborators.remove', options)
end