def update(user_id, options = {})
      query = { 
        query: {
          username: options[:username],
          password: options[:password],
          attributes: hash_to_base64_json(options[:attributes])
          }
        }
      new_options = default_options_to_merge_with.merge(query)
      self.class.put("/#{@api_ver}/users/#{user_id}", new_options)
    end
def update(user_id, options = {})
      query = { 
        query: {
          username: options[:username],
          password: options[:password],
          attributes: hash_to_base64_json(options[:attributes])
          }
        }
      new_options = default_options_to_merge_with.merge(query)
      self.class.put("/#{@api_ver}/users/#{user_id}", new_options)
    end
update a user
 TVUser.update_user("00000000-0000-0000-0000-000000000000",
   username: "bar",
   password: "foo",
   attributes: {
     "id": "000",
     "name": "John",
     "type": "patient"
     }
   }
 )