Unable to find APIs to to Update Self Declared & KYC Verified Profile Details

@IntegrationSupport Hello Team,

We are building a PHR app. One of the test case shared by NHA team is to update patient’s profile (KYC verified/ Self Declared).

But we are not able to find the APIs for same.

API documents we are referring:
https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml
https://sandbox.abdm.gov.in/swagger/ndhm-phr-app.yaml

Can you please tell us which APIs needs to be used for the same.

Regards.

for edit profile in PHR app, you may use API /v1/apps/profile/update
for updating emailId or mobile , use /v1/apps/profile/update-mobileEmail/init ; /v1/apps/profile/update-mobileEmail/confirm

Hi @SARCH1,

Can you share the documentation for the mentioned APIs.

We are not able to find the APIs in following PHR service API documents.
https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml
https://sandbox.abdm.gov.in/swagger/ndhm-phr-app.yaml

Thanks

@IntegrationSupport Any update on this?

There is logic if in the profile ABHA Number is liked with ABHA Address in that case though APP we show the KYC Verified and if ABHA Number is not linked with ABHA address that status is self-declared.

Thanks

@SARCH1, Thanks. We have already handled that logic.

We were looking for the APIs to update patient’s PHR profile. Which is not available in the PHR API document.

The API endpoints you have mentioned in one of the replies above are not in the document. I think those are ABHA service APIs if I am not mistaken. We were looking for PHR APIs. It would be helpful if you could share the Postman collection, cURL or Doc link if available for the same.

Regards.

We will soon release the postman collection. Meanwhile, you can use below APIs for edit profiles.
|Update Mobile Number|"/v1/apps/profile/update-mobileEmail/init ; /v1/apps/profile/update-mobileEmail/confirm"|
|Reset Password|/v1/apps/patients/profile/reset-password|
|Edit Profile|/v1/apps/profile/update|
|Update Photo|/v1/apps/profile/update|

Hi @IntegrationSupport,

Can you provide the payload or cURL for v1/apps/profile/update

We are not able to find the documentation for that API.

Regards,
Shubham

1 Like

Hi @shubham_1745, Following is the required curl ,

curl --location ‘https://dev.ndhm.gov.in/cm/v1/apps/profile/update
–header ‘X-AUTH-TOKEN: Bearer eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJhdHVsNjVAc2J4IiwiY2xpZW50SWQiOiJBVFVMX0xUSSIsInN5c3RlbSI6IkFCSEEtQSIsInJlcXVlc3RlcklkIjoiUEhSLVdFQiIsInBock1vYmlsZSI6bnVsbCwiZXhwIjoxNjc2NjE4MzkwLCJpYXQiOjE2NzY2MTExOTAsInBockFkZHJlc3MiOiJhdHVsNjVAc2J4IiwidHhuSWQiOiJhNGRiZDExOS1kZTdhLTQ1NzUtYTIwMy0xNjRhMGE5MTI3MGIifQ.h1c-n87MGPU1DmTSMPo3qWSji4bgKuCHH3mImVuCVAyGn7gRNlulR8XjJdK6sTaGDjmgpsjZsFdx2EsNY3a_ykRIzDVoXgPghetOQq3Md65xZVJVvdUBo7cutAYi1Cd2pQLdIcqh3sTvfxAAm2oZGoivcdv45SiqdR1VJxQOKJG-IWSY2rCpThYBh2-HA78ZOxTUDb4rHPAfvPRNjZya-8aqSXFNKvtpxig96EK6eE2LqBvQkKmObrvTKPivgL4xJ4Fb0hLCCquUwV-T2JrqC9JyN2-yNjf0bKhe9folXblzKSy8FTq70qKSPirNLAkKWaApjngc2khEs94NulPtPA’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01445fed04232ce728a6b2214bbfbad9eb5d7237fe12a0153b6fe964d4a213e16d4261bf3ab86a23e72e62a9c04c266378647353bc’
–data ‘{
“address”: “Pune apt”,
“dateOfBirth”: {
“date”: 6,
“month”: 5,
“year”: 1990
},
“districtCode”: “482”,
“gender”: “M”,
“name”: {
“first”: “Deepak”,
“last”: “Singh”,
“middle”: “”
},
“pinCode”: “410218”,
“profilePhoto”: “”,
“stateCode”: “27”
}’

Thanks!