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

# Save Draft

> Saves a partly filled pre-auth or claim form without submitting it. The body is the same one the stage's submit takes, stored as sent. Read it back with Get Claim Request using correlation id draft:Preauth or draft:Claim.



## OpenAPI

````yaml put /abdm/nhcx/v1/claims/{claimId}/draft
openapi: 3.1.0
info:
  description: ABHA Registration and login APIs
  title: Registration
  version: 1.0.0
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /abdm/nhcx/v1/claims/{claimId}/draft:
    put:
      summary: Save Draft
      description: >-
        Saves a partly filled pre-auth or claim form without submitting it. The
        body is the same one the stage's submit takes, stored as sent. Read it
        back with Get Claim Request using correlation id draft:Preauth or
        draft:Claim.
      parameters:
        - description: Eka User ID (OID)
          in: header
          name: X-Pt-Id
          schema:
            type: string
        - description: Partner User ID
          in: header
          name: X-Partner-Pt-Id
          schema:
            type: string
        - description: Partner HIP ID
          in: header
          name: X-Hip-Id
          schema:
            type: string
        - in: query
          name: stage
          required: true
          schema:
            enum:
              - Preauth
              - Claim
            type: string
        - description: claim_id returned by Create Claim
          in: path
          name: claimId
          required: true
          schema:
            description: claim_id returned by Create Claim
            minimum: 0
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                base_updated_at:
                  description: >-
                    updated_at from your last save. A newer stored draft is
                    refused with 409
                  type: string
                supporting_docs:
                  description: >-
                    Send content on first attach, then only the doc_id the save
                    returned
                  items:
                    $ref: '#/components/schemas/ModelsClaimDraftDoc'
                  type: array
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsClaimDraftSaveResponse'
          description: OK
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NhcxError'
          description: ''
        5XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NhcxError'
          description: ''
      security:
        - authApiKey: []
components:
  schemas:
    ModelsClaimDraftDoc:
      properties:
        category:
          type: string
        code:
          type: string
        content:
          description: base64; empty for an already-stored doc
          type: string
        content_type:
          type: string
        doc_id:
          type: string
        slot_key:
          description: >-
            SlotKey — see ClaimDraftDocRef.SlotKey. Carried through so a
            document sent in this typed field (rather than inline in the
            payload) is echoed back to the right form row too.
          type: string
        title:
          type: string
      type: object
    ModelsClaimDraftSaveResponse:
      properties:
        documents:
          description: >-
            Every document the draft now holds, each with the id it was stored
            under.
          items:
            $ref: '#/components/schemas/ModelsClaimDraftDocRef'
          type: array
        updated_at:
          type: string
      type: object
    NhcxError:
      properties:
        error:
          type: string
        issues:
          description: >-
            Every validation problem found, when the backend rejects a submit
            before it reaches the payer
          items:
            type: string
          type: array
        updated_at:
          description: 'Only on a 409 from the draft save: the stored draft''s version'
          type: string
      type: object
    ModelsClaimDraftDocRef:
      properties:
        category:
          type: string
        code:
          type: string
        content_type:
          type: string
        doc_id:
          type: string
        slot_key:
          description: >-
            The FORM's own identifier for the row this document fills
            ("IN001A::MAND0003", "cycle:MG072D:0", …). The client sends it and
            it is echoed back untouched: doc_id alone cannot say WHICH row a
            document belongs to when several slots share a code (every cycle
            document carries the same mand code), so without this the form
            cannot put a restored document back where it came from.
          type: string
        title:
          type: string
      type: object
  securitySchemes:
    authApiKey:
      description: The API requires a Bearer token (JWT) for authentication.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.