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": "<string>",
"id": "<string>"
}
],
"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>"
}
'