Method: Crowdin::ApiResources::Bundles#edit_bundle

Defined in:
lib/crowdin-api/api_resources/bundles.rb

#edit_bundle(bundle_id, query = {}, project_id = config.project_id) ⇒ Object

Parameters:

  • bundle_id (Integer)

    Bundle ID

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

    Request Body



123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/crowdin-api/api_resources/bundles.rb', line 123

def edit_bundle(bundle_id, query = {}, project_id = config.project_id)
  bundle_id  || raise_parameter_is_required_error(:bundle_id)
  project_id || raise_project_id_is_required_error

  request = Web::Request.new(
    connection,
    :patch,
    "#{config.target_api_url}/projects/#{project_id}/bundles/#{bundle_id}",
    { params: query }
  )
  Web::SendRequest.new(request).perform
end