Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact.update() doesn't work #300

Open
aonurozcan opened this issue Dec 21, 2021 · 2 comments
Open

Contact.update() doesn't work #300

aonurozcan opened this issue Dec 21, 2021 · 2 comments

Comments

@aonurozcan
Copy link

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

  1. Find a contact with Contact.find()
  2. Change some of it's fields
  3. Update contact with Contact.update()

Logs

@narenlog
Copy link

narenlog commented Nov 9, 2022

this could be related to this long-pending fix
#287 (comment)

@tbrowncomp
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants