lib/jamf/api/connection/jamf_pro_api.rb in ruby-jss-4.1.0 vs lib/jamf/api/connection/jamf_pro_api.rb in ruby-jss-4.1.1b1
- old
+ new
@@ -132,9 +132,11 @@
#######################################################
def jp_patch(rsrc, data)
validate_connected
rsrc = rsrc.delete_prefix Jamf::Connection::SLASH
resp = @jp_cnx.patch(rsrc) do |req|
+ # Patch requests must use this content type!
+ req.headers['Content-Type'] = 'application/merge-patch+json'
req.body = data
end
@last_http_response = resp
return resp.body if resp.success?