lib/LeadsService.php
public function update($id, array $lead, array $options = array())
  {
    $attributes = array_intersect_key($lead, array_flip(self::$keysToPersist));
    if (isset($attributes['custom_fields']) && empty($attributes['custom_fields'])) unset($attributes['custom_fields']);

    list($code, $updatedLead) = $this->httpClient->put("/leads/{$id}", $attributes, $options);
    return $updatedLead;
  }
public function update($id, array $lead, array $options = array())
  {
    $attributes = array_intersect_key($lead, array_flip(self::$keysToPersist));
    if (isset($attributes['custom_fields']) && empty($attributes['custom_fields'])) unset($attributes['custom_fields']);

    list($code, $updatedLead) = $this->httpClient->put("/leads/{$id}", $attributes, $options);
    return $updatedLead;
  }
public function update ( $ id , array $ lead , array $ options = array ( ) ) { $ attributes = array_intersect_key ( $ lead , array_flip ( self :: $ keysToPersist ) ) ; if ( isset ( $ attributes [ 'custom_fields' ] ) && empty ( $ attributes [ 'custom_fields' ] ) ) unset ( $ attributes [ 'custom_fields' ] ) ; list ( $ code , $ updatedLead ) = $ this -> httpClient -> put ( "/leads/{$id}" , $ attributes , $ options ) ; return $ updatedLead ; }
Update a lead

put '/leads/{id}'

Updates lead information
If the specified lead does not exist, this query returns an error
<figure class="notice">
In order to modify tags, you need to supply the entire set of tags
`tags` are replaced every time they are used in a request
</figure>

@param integer $id Unique identifier of a Lead
@param array $lead This array's attributes describe the object to be updated.
@param array $options Additional request's options.

@return array The resulting object representing updated resource.
Update a lead