Bitrix24\CRM\Contact::update PHP Method

update() public method

public update ( integer $contactId, array $fields = [], array $params = [] ) : array
$contactId integer Specifies the contact ID
$fields array An array in format array("field"=>"value"[, ...]) containing values for the fields that need to be updated. The fields can be one or more of those returned by crm.contact.fields.
$params array Set of parameters. REGISTER_SONET_EVENT - performs registration of a change event in a contact in the Activity Stream. The contact's Responsible person will also receive notification.
return array
    public function update($contactId, $fields = array(), $params = array())
    {
        $fullResult = $this->client->call('crm.contact.update', array('id' => $contactId, 'fields' => $fields, 'params' => $params));
        return $fullResult;
    }