Method: NexusAPI::NexusConnection#put

Defined in:
lib/nexus_api/nexus_connection.rb

#put(endpoint:, parameters: '', headers: {'Content-Type' => 'application/json'}, api_version: 'v1') ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/nexus_api/nexus_connection.rb', line 39

def put(endpoint:, parameters: '', headers: {'Content-Type' => 'application/json'}, api_version: 'v1')
  response = send_request(
    :put,
    endpoint,
    parameters: parameters,
    headers: headers,
    api_version: api_version
  )
  valid?(response)
end