Mobile Number Change API doesn’t work.We are getting below error
Api used: https://healthidbeta.ndhm.gov.in/api/v2/auth/reactivate/init
{
“timestamp”: “2022-04-22T09:14:55.322+0000”,
“status”: 401,
“error”: “Unauthorized”,
“message”: “Unauthorized”,
“path”: “/api/v2/account/change/mobile/old/generateOTP”
}
sequence followed
https://healthidbeta.ndhm.gov.in/api/v2/auth/login
https://healthidbeta.ndhm.gov.in/api/v2/account/change/mobile/old/generateOTP
Request
curl --location --request POST 'https://healthidbeta.ndhm.gov.in/api/v2/account/change/mobile/old/generateOTP’ \
–header ‘X-Token: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiI5NTQ0OTY4NDYwIiwiY2xpZW50SWQiOiJTQlhfMDAxMzY5Iiwic3lzdGVtIjoiQUJIQS1OIiwiZXhwIjoxNjUwNjIwNDUxLCJpYXQiOjE2NTA2MTg2NTEsInR4bklkIjoiNjU5YjgwYzgtMGE5MC00ZmVhLWFiYjUtZDg3ZDQ5NzllY2FmIn0.Caf9y7IsPhVTKA6E2lvgHeq4RrwwNI_7mpGMBJLGjwYeokKFsjaon0AbVfLmBWs13dzY46X5wmmq-dCAfqsGmm6nWpP2AC1WXuSHX-LfFjTkwy14gXDwwfe4-FDzL4bMzd6FpjxVOssjnaZffnj9sSCLu4M2t0Uz9GfYNZTo53A2SS0c5Z39EVNVgjtgvTOE4BDz0J5SbdeTCbOyXtWUxBL0EgG9xNO_jRsX84VhrCLufIiU55bdER9Tyx3-z0QF_KH2WN1nELQ49ArwKSr2ffYNjsNckXcxw1h_TJMklREWBbK7QSV6_5IJ83kVsjz5POdu59FRaIHascFsJX2Psr9Cp3xO4P-e1f34yoNmQOrRaGXRuc4Vodoe4Bvl1JSiuU8dZNn2AQIzpTzVIUO8hGhtYkyEdAZmLkiyLJSpIi5fOcgH1CbK0ufk9s7ah4EvJjdDln1xp-E5BAp0FQEA70SRv1UiDdV5vklgnkxplwWbjm47KoNr3EZ_Vf__bcjEP67zZNLa5L9nsFN1HJuew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