> ## Documentation Index
> Fetch the complete documentation index at: https://ecourtsindia.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Refresh a case (POST)

> Async re-scrape from the official source. Returns immediately; poll case detail until dateModified advances. Also fetches CNRs not yet indexed. Search index lags 1-2h.



## OpenAPI

````yaml https://openapi.gitbook.com/o/X2HbEVfDbyhRjXFDsXJM/spec/ecourtsindia-api.json post /api/partner/case/{cnr}/refresh
openapi: 3.0.3
info:
  title: eCourtsIndia API
  version: '4.0'
  description: >-
    Official REST API for India's largest court-data layer — 27.9 crore+ case
    records across the Supreme Court, 25 High Courts, 600+ district courts and
    tribunals. Search cases, read order text and AI summaries, fetch cause
    lists, and refresh live case data.


    - Docs: https://ecourtsindia.com/api/docs

    - Pricing: https://ecourtsindia.com/api/pricing

    - Developer guide:
    https://blogs.ecourtsindia.com/2026/05/18/how-to-use-ecourtsindia-api/


    Auth: send `Authorization: Bearer eci_live_...` on every call (except Court
    Structure). Court Structure and Enums are free; most other calls consume API
    credits. Responses follow `{ data, meta:{ request_id } }`. A CNR is the
    16-char case id `[A-Z]{4}\d{12}`.
  contact:
    name: eCourtsIndia
    url: https://ecourtsindia.com/api
servers:
  - url: https://webapi.ecourtsindia.com
    description: Partner API
security:
  - bearerAuth: []
tags:
  - name: Court Structure
    description: Walk States > Districts > Complexes > Courts. Free, no auth.
  - name: Reference
    description: Live enum dictionaries. Free.
  - name: Cases
    description: Case retrieval and refresh.
  - name: Orders
    description: Order PDF, markdown and AI analysis.
  - name: Search
    description: Solr full-text search with 40+ filters.
  - name: Cause List
    description: Daily court schedules.
paths:
  /api/partner/case/{cnr}/refresh:
    post:
      tags:
        - Cases
      summary: Refresh a case (POST)
      description: >-
        Async re-scrape from the official source. Returns immediately; poll case
        detail until dateModified advances. Also fetches CNRs not yet indexed.
        Search index lags 1-2h.
      parameters:
        - name: cnr
          in: path
          required: true
          schema:
            type: string
          example: DLHC010001232024
          description: ''
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  cnr: DLHC010001232024
                  status: QUEUED
                  message: Case refresh request queued
                  estimatedTime: 5-10 minutes
                meta:
                  request_id: 4000c1c0-1000-ac00-b63f-84710c7967bb
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
components:
  responses:
    MethodNotAllowed:
      description: Wrong HTTP method (refresh is POST)
      content:
        application/json:
          example:
            error:
              code: METHOD_NOT_ALLOWED
              message: Refresh must be POST, not GET.
            meta:
              request_id: 4000aa13-0003-4400-b63f-84710c7967bb
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: eci_live_...
      description: Your API key from https://ecourtsindia.com/dashboard/settings

````