> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amazingzebra.com/table-mutation-tracker/llms.txt
> Use this file to discover all available pages before exploring further.

# Rebuild the rolling index

> Diff every consecutive pair of snapshots in the data repo and rewrite
`rolling_index.json` from scratch.

n8n calls this when `/append-index` returns 409. Run time grows with the
number of snapshots; for large backfills use `scripts/rebuild_index.py`.



## OpenAPI

````yaml /openapi.json post /rebuild-index
openapi: 3.1.0
info:
  title: Table Mutation Tracker scraper API
  description: Called by the n8n orchestrator. Not intended for direct public use.
  version: 1.0.0
servers:
  - url: https://scraper.example.com
    description: Your scraper deployment
security: []
paths:
  /rebuild-index:
    post:
      tags:
        - Rolling index
      summary: Rebuild the rolling index
      description: |-
        Diff every consecutive pair of snapshots in the data repo and rewrite
        `rolling_index.json` from scratch.

        n8n calls this when `/append-index` returns 409. Run time grows with the
        number of snapshots; for large backfills use `scripts/rebuild_index.py`.
      operationId: rebuild_index_rebuild_index_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '401':
          description: Missing or invalid `X-Webhook-Secret` header.
        '500':
          description: '`WEBHOOK_SECRET`, `GITHUB_TOKEN`, or `DATA_REPO` is not configured.'
      security:
        - APIKeyHeader: []
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: >-
        Shared secret configured as `WEBHOOK_SECRET` on the scraper and as a
        Header Auth credential in n8n.
      in: header
      name: X-Webhook-Secret

````

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