Module: BWAPI::Client::Projects::Categories::Copy

Included in:
BWAPI::Client::Projects::Categories
Defined in:
lib/bwapi/client/projects/categories/copy.rb

Overview

Mentions module for projects/categories/copy endpoints

Instance Method Summary collapse

Instance Method Details

#copy_category(project_id, category_id, opts = {}) ⇒ Hashie::Mash

Copy and existing category to another project

Parameters:

  • project_id (Integer)

    Id of project

  • category_id (Integer)

    Id of query group

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

    options hash of parameters

Options Hash (opts):

  • destinationProjectId (Hash)

    target project id for copy

Returns:

  • (Hashie::Mash)

    Copied category



16
17
18
# File 'lib/bwapi/client/projects/categories/copy.rb', line 16

def copy_category(project_id, category_id, opts = {})
  post "projects/#{project_id}/categories/#{category_id}/copy", opts
end