Update a contact number
@param models\Call\ContactNumber  $ContactNumber
@return models\Call\ContactNumber
544021
public function update( models\Call\ContactNumber $ContactNumber){
        $rest = $this->getService( self::API_NUMBER . $ContactNumber->getId());
        $rest->PUT( $ContactNumber);

        return $rest->getResult( models\Call\ContactNumber::class);
    }
713426
public function replaceContact($contactId, array $data = [])
	{
		return $this->sendRequest(
			$this->createRequest('PUT', sprintf('contacts/%d', $contactId), [], $data)
		);
	}
1224003
public function setCaller($caller = null)
    {
        $this->caller = (null !== $caller) ? (string)$caller : null;

        return $this;
    }
555310
public function setContactId($contactId)
    {
        if ($contactId instanceof Lead) {
            $this->setContact($contactId);
        } elseif (\is_int($contactId)) {
            $this->contactId = $contactId;
        } else {
            throw new \InvalidArgumentException(
                '$contact must be an integer or instance of "\\Mautic\\LeadBundle\\Entity\\Lead"'
            );
        }

        return $this;
    }
544603
public function setId(int $value) : Contact
    {

        if ($this->data['id'] !== $value) {
            $this->data['id'] = $value;
            $this->setModified('id');
        }

        return $this;
    }
1008395
public function addPhoneNumber($phoneNumber)
    {
        Piwik::checkUserIsNotAnonymous();

        $phoneNumber = self::sanitizePhoneNumber($phoneNumber);

        $verificationCode = "";
        for ($i = 0; $i < self::VERIFICATION_CODE_LENGTH; $i++) {
            $verificationCode .= mt_rand(0, 9);
        }

        $smsText = Piwik::translate(
            'MobileMessaging_VerificationText',
            array(
                 $verificationCode,
                 Piwik::translate('General_Settings'),
                 Piwik::translate('MobileMessaging_SettingsMenu')
            )
        );

        $this->sendSMS($smsText, $phoneNumber, self::SMS_FROM);

        $phoneNumbers = $this->retrievePhoneNumbers();
        $phoneNumbers[$phoneNumber] = $verificationCode;
        $this->savePhoneNumbers($phoneNumbers);

        $this->increaseCount(MobileMessaging::PHONE_NUMBER_VALIDATION_REQUEST_COUNT_OPTION, $phoneNumber);

        return true;
    }
1259676
public function update( models\Call\ContactEntry $ContactEntry){
        $rest = $this->getService( self::API_CONTACT . $ContactEntry->getId());
        $rest->PUT( $ContactEntry);

        return $rest->getResult( models\Call\ContactEntry::class);
    }
250845
public function setPostcode(?string $value) : Contact
    {

        if ($this->data['postcode'] !== $value) {
            $this->data['postcode'] = $value;
            $this->setModified('postcode');
        }

        return $this;
    }
678948
public function create( models\Call\ContactAddress $contactAddress){
        $rest = $this->getService( self::API_ADDRESS);
        $rest->POST( $contactAddress);

        return $rest->getResult( models\Call\ContactAddress::class);
    }
552320
public function deleteContact($contactId)
    {
        if ($contactId) {
            $url = $this->getApiEndpoint() . self::REST_CONTACTS . $contactId;
            $this->setUrl($url)
                ->setVerb('DELETE');

            $response = $this->execute();

            if (isset($response->message)) {
                $message = ' url : ' . $url . ', ' . $response->message;
                $this->helper->debug('deleteContact', [$message]);
            }

            return $response;
        }
    }
344859
public function setMobile(?string $value) : Contact
    {

        if ($this->data['mobile'] !== $value) {
            $this->data['mobile'] = $value;
            $this->setModified('mobile');
        }

        return $this;
    }
413547
public function update( models\Call\ContactEmail $ContactEmail){
        $rest = $this->getService( self::API_EMAIL . $ContactEmail->getId());
        $rest->PUT( $ContactEmail);

        return $rest->getResult( models\Call\ContactEmail::class);
    }
178462
func (api *Client) UpdatePhoneNumber(idOrNumber string, data *UpdatePhoneNumberData) error {
	_, _, err := api.makeRequest(http.MethodPost, fmt.Sprintf("%s/%s", api.concatUserPath(phoneNumbersPath), url.QueryEscape(idOrNumber)), nil, data)
	return err
}
856621
public function replaceContactList($contactListId, array $data = [])
	{
		return $this->sendRequest(
			$this->createRequest('PUT', sprintf('contact_lists/%d', $contactListId), [], $data)
		);
	}
810563
public function update(array $contact_template)
    {
        if(!isset($contact_template['id'])) {
            throw new MonetivoException('$contact["type"] and $contact["id"] are required');
        }

        return $this->merchantApi->call('put', 'contacts_templates/' . $contact_template['id'], [
            'form_params' => $contact_template
        ])->toArray();
    }
143263
public function UpdateDncNumber($Number, Request\UpdateDncNumber $UpdateDncNumber)
    {
        $uri = $this->getUri('/contact/dnc/%s', array($Number));

        return $this->put($uri, $UpdateDncNumber);
    }
1260410
public Contact updateContact(final String id, ContactRequest contactRequest) throws UnauthorizedException, GeneralException {
        if (id == null) {
            throw new IllegalArgumentException("Contact ID must be specified.");
        }
        String request = CONTACTPATH + "/" + id;
        return messageBirdService.sendPayLoad("PATCH", request, contactRequest, Contact.class);
    }