Method: Colrapi.patch

Defined in:
lib/colrapi.rb

.patch(dataset_id, patch_id: nil, token: nil, verbose: false) ⇒ Object

Get metadata patch

Parameters:

  • dataset_id (String)

    The dataset id

  • token (String, nil) (defaults to: nil)

    The authentication token from retrieved with Colrapi.user_login(user, password)



709
710
711
712
713
714
715
# File 'lib/colrapi.rb', line 709

def self.patch(dataset_id, patch_id: nil, token: nil, verbose: false)
  endpoint = "dataset/#{dataset_id}/patch"
  unless patch_id.nil?
    endpoint = "#{endpoint}/#{patch_id}"
  end
  Request.new(endpoint: endpoint, token: token, verbose: verbose).perform
end