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 = {}) ⇒ Hash

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:

  • (Hash)

    Copied category



14
15
16
# File 'lib/bwapi/client/projects/categories/copy.rb', line 14

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