---
title: "PATCH /scan-requests/{id}"
method: PATCH
path: "/scan-requests/{id}"
tags: ["ScanRequestController"]
---

# PATCH /scan-requests/{id}

`PATCH /scan-requests/{id}`

## Path parameters

- `id` number, required

## Request body

- ScanRequestPartial — (tsType: Partial<ScanRequest>, schemaOptions: { partial: true })
  - `id` number
  - `dataSourceConfig` union
    - object
      - `connector` string, required
      - `token` string
      - `host` string, required
      - `path` string, required
      - `port` number
      - `protocol` string
      - `profileNotebook` string
    - object
      - `connector` string, required
  - `scanParameters` object
    - `profile` boolean, required
    - `modelDefinitions` object[]
      - `name` string
      - `properties` object
      - `settings` object
        - `databricks` object
          - `catalog` string
          - `database` string
          - `tableName` string
          - `isTemporary` boolean

## Response `204`

No Content

- unknown

## Changes

- **2026-07-17** `b5ead99a1d44` — 3 breaking, 1 info
  - the `connector` request property const value `databricks` was added
  - removed the enum value `databricks` of the request property `dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/connector`
  - removed the enum value `postgresql` of the request property `dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/connector`
  - added `subschema #2: MockConfig` to the `dataSourceConfig` request property `anyOf` list
- **2022-11-29** `f9eb0e2fcd7e` — 1 breaking, 4 info
  - added the new required request property `scanParameters/profile`
  - added the new optional request property `dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/port`
  - added the new optional request property `dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/profileNotebook`
  - added the new optional request property `dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/protocol`
  - …1 more
- **2022-11-28** `e74eebc73540` — 1 info
  - the request property `dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/token` became optional
- …earlier changes not shown

[Full history](https://skmtc.dev/ohdsi/apis/data-connection/changes/scan-requests/:id/patch.md)

---

[API](https://skmtc.dev/ohdsi/apis/data-connection.md) · [All operations](https://skmtc.dev/ohdsi/apis/data-connection/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ohdsi/data-connection/revisions/b5ead99a1d44/schema)
