---
title: "PUT /datasources/{dataSourceName}/scans/{scanName}"
method: PUT
path: "/datasources/{dataSourceName}/scans/{scanName}"
tags: ["Scan"]
---

# PUT /datasources/{dataSourceName}/scans/{scanName}

`PUT /datasources/{dataSourceName}/scans/{scanName}`

Creates or replaces an instance of a scan.

## Path parameters

- `dataSourceName` string, required
- `scanName` string, required

## Query parameters

- `api-version` string, required

## Request body

- Scan — The proxy resource.
  - `id` string — The resource identifier.
  - `name` string — The resource name.

## Response `200`

Success.

- Scan — The proxy resource.
  - `id` string — The resource identifier.
  - `name` string — The resource name.

## Other responses

- `201` — Success.
- `default` — An error response received from the Scanning Service.

## Changes

- **2026-07-13** (2018-12-01-preview) `1dc732ab31fc` — 1 info
  - api operation id `Scans_CreateOrUpdate` removed and replaced with `Scans_CreateOrReplace`

[Change history](https://skmtc.dev/azure/apis/purview-scanning/changes/datasources/:dataSourceName/scans/:scanName/put.md)

---

[API](https://skmtc.dev/azure/apis/purview-scanning.md) · [All operations](https://skmtc.dev/azure/apis/purview-scanning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/purview-scanning/revisions/1dc732ab31fc/schema)
