Update Auto Approval Policy
curl --request PATCH \
--url https://api.eka.care/abdm/v1/consents/auto-approval \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'oid=<string>'import requests
url = "https://api.eka.care/abdm/v1/consents/auto-approval"
payload = { "oid": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.patch(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({oid: '<string>'})
};
fetch('https://api.eka.care/abdm/v1/consents/auto-approval', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.eka.care/abdm/v1/consents/auto-approval")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("oid=%3Cstring%3E")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/consents/auto-approval");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddParameter("oid", "<string>");
var response = await client.PatchAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/v1/consents/auto-approval")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "oid=%3Cstring%3E"
response = http.request(request)
puts response.read_body{
"status": "enabled"
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}P4 Locker
Update Auto Approval Policy
Update the auto approval policy settings
PATCH
/
abdm
/
v1
/
consents
/
auto-approval
Update Auto Approval Policy
curl --request PATCH \
--url https://api.eka.care/abdm/v1/consents/auto-approval \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'oid=<string>'import requests
url = "https://api.eka.care/abdm/v1/consents/auto-approval"
payload = { "oid": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.patch(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({oid: '<string>'})
};
fetch('https://api.eka.care/abdm/v1/consents/auto-approval', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.eka.care/abdm/v1/consents/auto-approval")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("oid=%3Cstring%3E")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/consents/auto-approval");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddParameter("oid", "<string>");
var response = await client.PatchAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/v1/consents/auto-approval")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "oid=%3Cstring%3E"
response = http.request(request)
puts response.read_body{
"status": "enabled"
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Used in
Authorizations
The API requires a Bearer token (JWT) for authentication.
Headers
Eka User ID (OID)
Partner User ID
Partner HIP ID
Query Parameters
OID is used to Identify the user.
Body
application/x-www-form-urlencoded
OID is used to Identify the user.
Response
OK
Auto approval status
Available options:
enabled, disabled Was this page helpful?

