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

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

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

put '/contacts/{id}'

Updates contact information
If the specified contact does not exist, the request will return an error
**Notice** When updating contact tags, you need to provide all tags
Any missing tag will be removed from a contact's tags

@param integer $id Unique identifier of a Contact
@param array $contact 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 contact