Method: Morpheus::LibraryOperatingSystemsInterface#create
- Defined in:
- lib/morpheus/api/library_operating_systems_interface.rb
#create(payload) ⇒ Object
43 44 45 46 47 48 |
# File 'lib/morpheus/api/library_operating_systems_interface.rb', line 43 def create(payload) url = "#{@base_url}/api/library/operating-systems" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } opts = {method: :post, url: url, headers: headers, payload: payload.to_json} execute(opts) end |