def update(call)
      validate_type!(call)
      params = extract_params!(call, :id)
      id = params[:id]

      attributes = sanitize(call)
      _, _, root = @client.put("/calls/#{id}", attributes)

      Call.new(root[:data])
    end
def update(call)
      validate_type!(call)
      params = extract_params!(call, :id)
      id = params[:id]

      attributes = sanitize(call)
      _, _, root = @client.put("/calls/#{id}", attributes)

      Call.new(root[:data])
    end
Update a call

 put '/calls/{id}'

 Allows to attach a Contact or Lead to an existing Call, or change it’s current association

 @param call [Call, Hash] Either object of the Call type or Hash. This object's attributes describe the object to be updated.
 @return [Call] The resulting object represting updated resource.