Updating a contact

I’m using REST, and I’ve successfully added a contact based on the samples provided in the documentation… However I cannot update. I’m using the following code to add contact:


How can I update a contact? as I can’t find contacts()->update function

Please help thanks!

Hi @Von_Ryan_Javillonar, you can update a contact by calling the save method on it, like this: $contact->save(). The save method will check to see if the id is set on the contact and will perform a PATCH if it is there.