question

Upvotes
Accepted
15 0 1 4

change password API

Hi team,

We extract realtime data using Python with Refinitiv Data Library. We have a Machine ID, appkey and password. We now get a message saying "Password is expired. input NewPassword field to change password".

Is there a website where we can set and change this password? Or do we need to do this in the API?

Can you please help us here - as we are unable to retrieve data now.

#technology#productrefinitiv-data-platformpython api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @VFM

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

1 Answer

· Write an Answer
Upvote
Accepted
24.7k 54 17 14

Hello @VFM

Thank you for reaching out to us. You can change the password with the following HTTP RDP APIs call

curl --location 'https://api.refinitiv.com/auth/oauth2/v1/token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=<Machine ID>' \
--data-urlencode 'password=<Current Password>' \
--data-urlencode 'takeExclusiveSignOnControl=true' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'scope=trapi' \
--data-urlencode 'client_id=b4842f3904fb4a1fa18234796368799086c63541' \
--data-urlencode 'newPassword=<New Password>'
  • The required parameter to change the password is the newPassword parameter

There is the RDP APIs "passwordChange.py" example built on top of the HTTP REATful API above. The example is available on the RDP APIs download page (the Quickstart and Python tutorials source code, Python starter examples).


I hope this information helps.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.