---
search:
  tags:
    - Sources
    - POST
seo:
  description: >-
    Stop Incremental Snapshot. Reference for the POST
    /sources/stop_incremental_snapshot endpoint in the Streamkap REST API.
sidebar:
  label: Stop Incremental Snapshot
  badge: POST
title: Stop Incremental Snapshot
type: openapi-operation
---
`POST /sources/stop_incremental_snapshot`

**Request body** (`application/json`, required)

- `source_id` (string, required)
- `topic_names` (string[] | null)
- `additional_conditions` (AdditionalCondition[] | null)
- `surrogate_keys` (SurrogateKeySpec[] | null) — Per-table surrogate key(s) for parallel filtered snapshots: the indexed column(s) to range over instead of the PK. Distinct from the source-wide surrogate\_key below (incremental / blocking path).
- `surrogate_key` (string | null) — Column name to use as surrogate primary key for all tables during snapshot chunking. Useful for tables without primary keys or when a more efficient column exists for chunking.
- `filter_regex` (string | null) — Optional restrictive regex applied by the orchestrator to the physical tables the controller expands, across ALL triggered selectors. Matched (via search) against each physical's fully-qualified identifier \`\<database-or-schema\>.\<table\>\`, so it can narrow by DB/schema, table name, or a table-name suffix — the caller decides. Only matching physicals are snapshotted. Use to backfill a specific subset without re-snapshotting a regex source's full expansion. Null → no restriction.

Request body example:

```json
{
  "source_id": "string",
  "topic_names": [
    "string"
  ],
  "additional_conditions": [
    {
      "data_collection": "string",
      "filter": "string"
    }
  ],
  "surrogate_keys": [
    {
      "data_collection": "string",
      "surrogate_key": [
        "string"
      ]
    }
  ],
  "surrogate_key": "string",
  "filter_regex": "string"
}
```

**Responses**

- `200` — Successful Response
- `422` — Validation Error
