Contact.update() doesn't work
Please use the following template to submit your issue. Following this template will allow us to quickly investigate and help you with your issue. Please be aware that issues which do not conform to this template may be closed.
For feature requests please contact us at [email protected]
Version info
- intercom-java version: 2.8.2
- Java version: 11
Expected behavior
Contact.update() should update the contact
Actual behavior
It gives error with the following message A contact matching those details already exists with id=XXXXXXXXXX
Steps to reproduce
- Find a contact with Contact.find()
- Change some of it's fields
- Update contact with Contact.update()
Logs
this could be related to this long-pending fix https://github.com/intercom/intercom-java/pull/287#issuecomment-1307726958
It looks to me that Contact.update() is using a POST request while the api expects a PUT for updates and POST for creations, hence error.