Update existing user details

Answered Eurofins_EOL 7 years ago

Hi Stas,


I would like to update the already existing users email and/or full name.


The API 3.0, has a PUT method that takes Email and Full name as parameters but it always expects new email. If i want the email and/or full name to be updated, how would i do so?


Thanks,

Sujith

Replies (7)

photo
1

Currently there is no way to do that. As a alternative solution you can retrieve user data first to compare which parameters should be changed finally. For example, if email equals with one which you want to pass you need skip it and pass only Full name.

photo
1

Thanks for the quick reply Paul,


So call the GET based on the User Email and then do a POST for the UserId with passing the updated full name and/or Email?

Correct me if I'm wrong.

photo
1

Correct.

photo
1

Hi Paul,


The above mentioned solution doesn't seem to work.

We perform a GET based on the user email and do a POST for the user id with updated Email and FullName. The user details do not get updated.


Please provide an alternative solution.

photo
1

Hello.

We will check this issue and reply you shortly.

Thanks for waiting.

photo
1

We have tested 3.0 and there is no problem with user data changing.

As proof of that we recorded a screencast - https://www.youtube.com/watch?v=Ezycs9Xhrzc

Please check the parameters you send through POST method one more time.

photo
1

Hi Paul,


I have not done any changes to the requests. But somehow it Works fine now !!


Thanks for the update.

Leave a Comment
 
Attach a file