Solved

How to update a contact's phone number

  • 22 December 2022
  • 1 reply
  • 135 views

Badge +2

Hope you’re good. Please can you advise how I can change a phone number via the API?

 

I have been able to change all the other fields with the below JSON example but phone doesn’t seem to work.

 

Example JSON body:

{

    "name": "Dale Cooper",

    "phone": 5125555555,

    "custom_fields" : {

        "ContactID": 12345,

        "AccountNumber": "P1234",

        "CustomerGrade": "CC2",

        "EnhancedGrade": " ",

        "BranchName": "Acme Services",

        "County": "Leicestershire",

        "OuterPostcode": "LE"

    }

}

 

Also tried this separately within the contact object:

 

{

     "handles": [

        {

            "source": "phone",

            "handle": "5125555555"

        }

    ]

}

 

Thanks

icon

Best answer by Support Engineering 22 December 2022, 17:51

View original

1 reply

Userlevel 1
Badge +5

To add a new handle to a contact, you'll want to use the Add contact handle endpoint. You can then delete any other handles with Delete contact handle.

 

Sorry that this isn't very clear 🙏🏻 I'll pass this along to improve upon in our documentation. Let me know if anything else comes up, and have a good rest of your day!

 

--Leslie

Reply