---
search:
  tags:
    - Sources
    - POST
seo:
  description: >-
    Execute snapshot on multiple sources in parallel. Reference for the POST
    /sources/bulk/snapshot endpoint in the Streamkap REST API.
sidebar:
  label: Bulk Execute Snapshot Sources
  badge: POST
title: Bulk Execute Snapshot Sources
type: openapi-operation
---
Execute snapshot on multiple sources in parallel.

Supports both incremental (default) and blocking snapshot types via the
snapshot_type field:

- **incremental**: Uses watermarking to capture data while streaming continues.
- **blocking**: Pauses streaming during snapshot. Required for keyless tables.
  Executed with lower concurrency and staggered timing to avoid overwhelming
  Kafka Connect.

Supports two modes for source selection:
1. Explicit IDs: Pass a list of source IDs
2. Select all: Set select_all=true with optional filters

Returns partial success results - continues processing even if individual snapshots fail
(e.g. 409 when a snapshot is already running for a source).

`POST /sources/bulk/snapshot`

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

- `ids` (string[] | null) — List of entity IDs to perform the action on. Omit if using select\_all=true.
- `select_all` (boolean) — If true, select all entities matching the filters
- `filters` (BulkSelectionFilter | null) — Optional filters when select\_all=true
- `snapshot_type` (string) — Type of snapshot to execute. 'incremental' (default) uses watermarking while streaming continues. 'blocking' pauses streaming during snapshot - required for keyless tables.

Request body example:

```json
{
  "ids": [
    "string"
  ],
  "select_all": false,
  "filters": {
    "source_id": "string",
    "destination_id": "string"
  },
  "snapshot_type": "incremental"
}
```

**Responses**

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

Response example, 200:

```json
{
  "results": [
    {
      "id": "string",
      "success": true,
      "message": "string",
      "data": {}
    }
  ],
  "summary": {
    "total": 0,
    "succeeded": 0,
    "failed": 0
  }
}
```
