cURL
curl --request POST \ --url https://api.eka.care/abdm/v1/consents/approve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "consent_artefacts": [ { "access_mode": "view", "care_contexts": [ { "display": "Heart Rate 2020", "id": "heart-rate-2020" } ], "duration": { "from": "2023-11-07T05:31:56Z", "to": "2023-11-07T05:31:56Z" }, "erase_at": "2023-11-07T05:31:56Z", "hi_types": [ "<string>" ], "hip_id": "<string>" } ], "id": "<string>" }'
This response does not have an example.
This endpoint is used to approve the consent
The API requires a Bearer token (JWT) for authentication.
Eka User ID (OID)
Partner User ID
Partner HIP ID
OID is used to Identify the user.
No Content
Was this page helpful?