Skip to main content

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

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