Hi @Shubhanshu_Shukla,
I have trying to set Auto Approval policy for HIU using below api but it’s give response 401(Unauthorized)
‘https://dev.abdm.gov.in/cm/consents/auto-approve’
Request:
{“hiu”:{“id”:“driefcasehl”,“name”:""},“includedSources”:[{“categories”:[“LINK”,“DATA”],“hiTypes”:[“DiagnosticReport”,“Prescription”,“ImmunizationRecord”,“DischargeSummary”,“OPConsultation”,“HealthDocumentRecord”,“WellnessRecord”],“period”:{“from”:“1921-12-11T00:00:00T”,“to”:“2021-12-11T18:29:00T”},“purpose”:{“code”:“PATRQT”,“text”:“Self Requested”},“status”:""}],“isApplicableForAllHIPs”:true}
Response:
{
“error”: {
“code”: 1401,
“message”: “Token verification failed”
}
}
Please guide us
Thanks