Bulk refresh (POST)
curl --request POST \
--url https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cnrs": [
"DLHC010001232024",
"MHAM030051402019"
]
}
'import requests
url = "https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh"
payload = { "cnrs": ["DLHC010001232024", "MHAM030051402019"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cnrs: ['DLHC010001232024', 'MHAM030051402019']})
};
fetch('https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cnrs' => [
'DLHC010001232024',
'MHAM030051402019'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh"
payload := strings.NewReader("{\n \"cnrs\": [\n \"DLHC010001232024\",\n \"MHAM030051402019\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cnrs\": [\n \"DLHC010001232024\",\n \"MHAM030051402019\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cnrs\": [\n \"DLHC010001232024\",\n \"MHAM030051402019\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"refreshed": [
"DLHC010001232024",
"MHAM030051402019"
],
"queued": [],
"invalid": []
},
"meta": {
"request_id": "40009d07-0014-b000-b63f-84710c7967bb"
}
}Cases
Bulk refresh (POST)
Queue up to 50 CNRs in one POST for portfolio sync. Validates, dedupes, reports invalid ones.
POST
/
api
/
partner
/
case
/
bulk-refresh
Bulk refresh (POST)
curl --request POST \
--url https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cnrs": [
"DLHC010001232024",
"MHAM030051402019"
]
}
'import requests
url = "https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh"
payload = { "cnrs": ["DLHC010001232024", "MHAM030051402019"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cnrs: ['DLHC010001232024', 'MHAM030051402019']})
};
fetch('https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cnrs' => [
'DLHC010001232024',
'MHAM030051402019'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh"
payload := strings.NewReader("{\n \"cnrs\": [\n \"DLHC010001232024\",\n \"MHAM030051402019\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cnrs\": [\n \"DLHC010001232024\",\n \"MHAM030051402019\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cnrs\": [\n \"DLHC010001232024\",\n \"MHAM030051402019\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"refreshed": [
"DLHC010001232024",
"MHAM030051402019"
],
"queued": [],
"invalid": []
},
"meta": {
"request_id": "40009d07-0014-b000-b63f-84710c7967bb"
}
}Authorizations
Your API key from https://ecourtsindia.com/dashboard/settings
Response
200 - application/json
Success
⌘I