---
title: "POST /api/admin/data-scanner/scans/{scan_id}/trigger/"
method: POST
path: "/api/admin/data-scanner/scans/{scan_id}/trigger/"
tags: ["Admin data scanner"]
---

# POST /api/admin/data-scanner/scans/{scan_id}/trigger/

`POST /api/admin/data-scanner/scans/{scan_id}/trigger/`

Triggers an immediate run of the given data scan. The scan executes asynchronously and searches the configured workspaces for matches. **Enterprise feature.**

## Path parameters

- `scan_id` string, required

## Response `202`

- DataScan
  - `id` integer, required
  - `name` string, required
  - `scan_type` 'pattern' | 'list_of_values' | 'list_table', required — * `pattern` - Pattern * `list_of_values` - List of values * `list_table` - List Table
  - `pattern` string, nullable
  - `frequency` 'manual' | 'hourly' | 'daily' | 'weekly' — * `manual` - Manual * `hourly` - Hourly * `daily` - Daily * `weekly` - Weekly
  - `scan_all_workspaces` boolean
  - `workspace_ids` string, required
  - `is_running` boolean
  - `last_run_started_at` string, date-time, nullable
  - `last_run_finished_at` string, date-time, nullable
  - `last_error` string, nullable
  - `list_items` string, required
  - `results_count` string, required
  - `source_table_id` string, required
  - `source_field_id` string, required
  - `whole_words` boolean
  - `source_workspace_id` string, required
  - `source_database_id` string, required
  - `created_on` string, date-time, required
  - `updated_on` string, date-time, required

## Other responses

- `404`
- `409`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
