Method: Morpheus::LibraryInstanceTypesInterface#update

Defined in:
lib/morpheus/api/library_instance_types_interface.rb

#update(id, options) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/morpheus/api/library_instance_types_interface.rb', line 30

def update(id, options)
  url = "#{@base_url}/api/library/#{id}"
  headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' }
  payload = options
  opts = {method: :put, url: url, headers: headers, payload: payload.to_json}
  execute(opts)
end