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

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

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

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

      LeadSource.new(root[:data])
    end
Update a source

 put '/lead_sources/{id}'

 Updates source information
 If the specified source does not exist, the request will return an error
 <figure class="notice">
 If you want to update a source, you **must** make sure source's name is unique
 </figure>

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