lib/eleyo/api/account.rb in eleyo-1.2.0 vs lib/eleyo/api/account.rb in eleyo-1.2.1
- old
+ new
@@ -75,10 +75,10 @@
def update(uuid, params)
uuid = URI.escape(uuid.to_s)
request = HTTPI::Request.new
request.url = "#{api_route}/users/#{uuid}"
- request.body = params
+ request.body = params.to_json
request.headers = self.generate_headers
response = HTTPI.put(request)
if response.code == 204