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

# Edit an extraction cell

> Override one extracted field on a document.

Writes an override for one schema field. Overrides survive a later reprocess of the **same** schema. They are cleared if you [move](/api-reference/documents/move-batch) the document onto a different schema.

Cell edits do not spend credits.


## OpenAPI

````yaml PATCH /api/v2/documents/attachments/{att_id}/extraction/cells/{field_id}/
openapi: 3.1.0
info:
  title: Abacus Docs API
  version: 1.0.0
  description: |
    REST + SSE surface for Abacus Docs on the same host as the web app
    (`https://abacusdocs.com`). Paths are `/api/v2/…`.

    Authenticate with an organisation API key (`sk-abacus-*`) as a Bearer
    token, or an Auth0 access token. Cross-tenant reads return **404**, not
    403. Page-based lists use `?page=` and `?page_size=`.

    Extraction, reprocess, schema tests, and chat turns spend credits.
    See the help centre Credits pages for rates.
  contact:
    name: Abacus Docs
    url: https://abacusdocs.com/contact
servers:
  - url: https://abacusdocs.com
    description: Production (Extract)
security: []
paths:
  /api/v2/documents/attachments/{att_id}/extraction/cells/{field_id}/:
    patch:
      tags:
        - v2/documents
      summary: Edit one extraction cell on a document
      description: >-
        Persists a user override into ``ChatAttachment.extraction_overrides``
        keyed by the ``field_id`` in the URL. ``value: null`` clears the
        override and reverts the cell to the LLM-extracted value. Overrides
        survive reprocess by design. Reuses the same ``ExtractionOverride``
        storage shape + ``_to_cell`` rendering as the batch grid cell editor.
      operationId: v2_documents_attachments_extraction_cells_partial_update
      parameters:
        - in: path
          name: att_id
          schema:
            type: integer
          required: true
        - in: path
          name: field_id
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedDocumentCellEditRequestRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentCellEditResponse'
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
        '404':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
      security:
        - extractApiKey: []
        - bearerAuth: []
        - cookieAuth: []
components:
  schemas:
    PatchedDocumentCellEditRequestRequest:
      type: object
      description: >-
        Body for PATCH ``/attachments/<att_id>/extraction/cells/<field_id>/``.


        ``value``: the corrected cell value, or ``null`` to clear the override
        and

        revert to the LLM-extracted value. ``side`` selects the original or the

        translated cell (Decision 8 per-field translation). ``field_id`` is in
        the

        URL path, not the body.
      properties:
        value:
          oneOf:
            - {}
            - type: 'null'
        side:
          allOf:
            - $ref: '#/components/schemas/SideEnum'
          default: original
    DocumentCellEditResponse:
      type: object
      description: 'Response for the cell-edit PATCH: the recomputed cell.'
      properties:
        cell: {}
      required:
        - cell
    SideEnum:
      enum:
        - original
        - translated
      type: string
      description: |-
        * `original` - original
        * `translated` - translated
  securitySchemes:
    extractApiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: |
        Organisation API key from Settings → API / `/api/keys/`. The secret is
        shown once. Send `Authorization: Bearer sk-abacus-…`. One active key
        per organisation. Ingest (`/api/v2/ingest/*`) refuses API keys — that
        surface is Auth0-only with `ingest:read` / `ingest:write` scopes.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Auth0 access token for a signed-in user. Send `Authorization: Bearer
        <token>`.

        The SPA and desktop agent use this. Prefer an organisation API key for

        server-to-server integrations.
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid
      description: |
        Django session cookie from a browser login. Present so the web app can
        call `/api/v2` without a header. Do not rely on this for integrations.

````