Module: BWAPI::Client::Projects::BulkActions::Author

Included in:
BWAPI::Client::Projects::BulkActions
Defined in:
lib/bwapi/client/projects/bulk_actions/author.rb

Overview

Author module for projects/bulkactions/author endpoints

Instance Method Summary collapse

Instance Method Details

#bulk_edit_author(project_id, opts = {}) ⇒ Hash

Create a new bulk action in project for an author

Parameters:

  • project_id (Integer)

    Id of project

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

    options hash of parameters

Options Hash (opts):

  • accountType (String)

    Account type to assign

  • authorName (String)

    Author’s name

  • domain (String)

    Author’s domain

  • gender (String)

    Gender to assign

  • id (Integer)

    of the bulk action

  • interests (Array)

    list<String> Interests to assign

  • professions (Array)

    list<AuthorProfessionDTO> Professions to assign

Returns:

  • (Hash)

    New bulk action for mentions



19
20
21
# File 'lib/bwapi/client/projects/bulk_actions/author.rb', line 19

def bulk_edit_author(project_id, opts = {})
  post "projects/#{project_id}/bulkactions/author", opts
end