src/Controllers/ContactController.php
public function updateContact(Contact $contact)
    {
        return $this->httpHelper->patch("accounts/" . $contact->getAccountID() . "/contacts/" . $contact->getContactID(), [
            'name' => $contact->getName(),
            'role' => $contact->getRole(),
            'email_address' => $contact->getEmailAddress(),
            'phone_numbers' => $contact->getPhoneNumbersFormatted(),
        ]);
    }
public function updateContact(Contact $contact)
    {
        return $this->httpHelper->patch("accounts/" . $contact->getAccountID() . "/contacts/" . $contact->getContactID(), [
            'name' => $contact->getName(),
            'role' => $contact->getRole(),
            'email_address' => $contact->getEmailAddress(),
            'phone_numbers' => $contact->getPhoneNumbersFormatted(),
        ]);
    }
public function updateContact ( Contact $ contact ) { return $ this -> httpHelper -> patch ( "accounts/" . $ contact -> getAccountID ( ) . "/contacts/" . $ contact -> getContactID ( ) , [ 'name' => $ contact -> getName ( ) , 'role' => $ contact -> getRole ( ) , 'email_address' => $ contact -> getEmailAddress ( ) , 'phone_numbers' => $ contact -> getPhoneNumbersFormatted ( ) , ] ) ; }
Update an existing contact
@param Contact $contact
@return mixed
@throws \SonarSoftware\CustomerPortalFramework\Exceptions\ApiException
Update an existing contact