Recent searches
No recent searches
api update query organisation
Posted May 23, 2024
Issue with Updating Phone Number in User Profile
Dear Zendesk Support Team,
I hope this message finds you well.
I am writing to report an issue I am experiencing with updating the phone number in a user's profile through the API. Specifically, when I attempt to replace the existing phone number, the new number gets added as an additional phone number instead of replacing the original one. As a result, multiple phone numbers are listed for the user, with the first one remaining unchanged.
Could you please confirm if there have been any updates or changes to the API endpoint `/users/{userId}.json` that would affect how phone numbers are updated? Additionally, if replacing the existing phone number is not possible with the current API, could you provide any recommended solutions or workarounds to achieve this?
Here are the details of my request:
- **User ID:** 18936873876125
- **Current Endpoint Used:** `/users/{userId}.json`
Any guidance or assistance you can provide would be greatly appreciated.
Thank you for your support.
Best regards,
Addi Mahfod
Keyrus
0
1 comment
Tipene Hughes
Hi there,
Can you try making the changes with the
/api/v2/users/create_or_update
endpoint? You'll need to pass the user ID in the payload body of the request. Here's a link to the docs with more details:https://developer.zendesk.com/api-reference/ticketing/users/users/#create-or-update-user
Let me know if you have any questions, or if you continue to run in to issues after trying this endpoint.
Thanks!
Tipene
0