If I have a cached token but don’t have the expiration, is there a REST++ call i can make to the expiration?
Thank you.
If I have a cached token but don’t have the expiration, is there a REST++ call i can make to the expiration?
Thank you.
You can “refresh” existing token with PUT request on the /requesttoken endpoint:
curl -k -X PUT 'https://SERVER:9000/requesttoken?secret=SECRET&token=EXISTING_TOKEN&lifetime=26000000'
(lifetime would be aprox a month).
You will have a new expiration in response:
{"code":"REST-0000","expiration":26000000,"error":false,"message":"Refresh token successfully.","token":"EXISTING_TOKEN"}
Best,
Bruno