Change password API doesn’t work.We are getting below error for the api.request and response are as follows.Please advice
(https://healthidbeta.ndhm.gov.in/api/v2/account/change/passwd/generateAadhaarOTP)
{
“code”: “HIS-401”,
“message”: “User is not authorized.”,
“details”: [
{
“message”: “Please try logging in with correct details.”,
“code”: “HIS-1005”,
“attribute”: null
}
]
}
sequence followed
https://healthidbeta.ndhm.gov.in/api/v2/auth/login
https://healthidbeta.ndhm.gov.in/api/v2/account/change/passwd/generateAadhaarOTP
request
curl --location --request GET 'https://healthidbeta.ndhm.gov.in/api/v2/account/change/passwd/generateAadhaarOTP’ \
–header ‘X-Token: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIzOC04Nzc1LTU4NzQtNTIyNyIsImNsaWVudElkIjoiU0JYXzAwMTM2OSIsInN5c3RlbSI6IkFCSEEtTiIsInR5cCI6IlJlZnJlc2giLCJleHAiOjE2NTA5NzQ4NzYsImlhdCI6MTY1MDU0Mjg3Nn0.UNF1q7DUsAQ5shrw2wQaWOisAYF0rqZKXwSlIVm28F4F9TeYjx3zauOpHAWCrqaV5F8VH8Vr0MjGiWhUUDbq2mDKOkQrfTjFyUTUXCzEDxzUUeJnlFt9Rp-DF7QtUIF8HBNGSh9B36fWRi-lIQb5DzEgGl1zz4YQ4UDwab1X-13_Ls3i8dzJzFx1vhMUzKHYMu5bCnZJitxUWNS7yk7j2Egwg0_Nlz1dowRS1MKHuf5YzbwaW1GxppXuzFRDxwhdYH3EMxP-UjsVOtXmqhz5MrRe_Qxq5YF7wCmqtARUh3UWpOvcg3B9xOHjhB2yZnwdatzKxAjt_8djQuwejcjJI36guVB3c833VRaRDGGQVfZEkHdrLyUlc52Uw8aJOcS8IdbrIpXYJD4ZhEeW2gX2AphfJjF5tq-x9Q8BA2pkA22inRNJnqxUB4xp4aWNwHehPR1vISowHt8lvWHZL-j554KOtyc_M__gmMDa3bKO02dBQyzH9Sz_u3qodWEue7jwZ0hmBGZFCih7FuwoPjQZfnWdm72Ko-RFGfgdxz2Jco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