curl --request POST \
--url https://api.eka.care/abdm/v1/consents/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"appointment_id": "<string>",
"care_contexts": [
{
"cc_ref": "<string>",
"patient_ref": "<string>"
}
],
"hip_identifier": {
"id": "<string>",
"name": "<string>"
},
"hiu": {
"clinic_id": "afsdfj786fges87f68g8",
"d_oid": "162835406498984",
"requester": {
"identifier": {
"system": "<string>",
"type": "<string>",
"value": "<string>"
},
"name": "<string>"
}
},
"patient": {
"health_id": "bobthebuilder@abdm",
"oid": "162835406498984"
},
"period": {
"expiry": "2009-11-10T23:00:00Z",
"from": "2009-11-10T23:00:00Z",
"to": "2009-11-10T23:00:00Z"
},
"purpose": "Self Requested",
"record_types": [
"<string>"
]
}'
{
"consent_init_id": "<string>"
}
curl --request POST \
--url https://api.eka.care/abdm/v1/consents/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"appointment_id": "<string>",
"care_contexts": [
{
"cc_ref": "<string>",
"patient_ref": "<string>"
}
],
"hip_identifier": {
"id": "<string>",
"name": "<string>"
},
"hiu": {
"clinic_id": "afsdfj786fges87f68g8",
"d_oid": "162835406498984",
"requester": {
"identifier": {
"system": "<string>",
"type": "<string>",
"value": "<string>"
},
"name": "<string>"
}
},
"patient": {
"health_id": "bobthebuilder@abdm",
"oid": "162835406498984"
},
"period": {
"expiry": "2009-11-10T23:00:00Z",
"from": "2009-11-10T23:00:00Z",
"to": "2009-11-10T23:00:00Z"
},
"purpose": "Self Requested",
"record_types": [
"<string>"
]
}'
{
"consent_init_id": "<string>"
}
The API requires a Bearer token (JWT) for authentication.
OK
The response is of type object
.
Was this page helpful?