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

# PATCH /scan-requests/{id}/scan-request-logs

`PATCH /scan-requests/{id}/scan-request-logs`

## Path parameters

- `id` number, required

## Request body

- ScanRequestLogPartial — (tsType: Partial<ScanRequestLog>, schemaOptions: { partial: true })
  - `id` number
  - `scanRequestId` number
  - `status` 'complete' | 'in progress'
  - `modelDefinition` object
    - `name` string
    - `properties` object
    - `settings` object
      - `databricks` object
        - `catalog` string
        - `database` string
        - `tableName` string
        - `isTemporary` boolean
  - `modelProfile` object
    - `rowCount` number, required
    - `PropertyProfiles` object[]
      - `frequencyDistribution` object, required
        - `bucketName` string, required
        - `bucketCount` number, required
      - `distinctValues` number, required
      - `databricks` object
        - `col_name` string
        - `data_type` string
        - `comment` unknown

## Response `200`

ScanRequest.ScanRequestLog PATCH success count

- LoopbackCount
  - `count` number

## Changes

- **2022-12-15** `17f92620449e` — 1 info
  - added the new optional request property `modelProfile`
- **2022-11-29** `f9eb0e2fcd7e` — 1 breaking
  - the `modelDefinition/properties/additionalProperties/databricks/comment` request property type/format changed from `string`/`` to ``/``
- **2022-11-28** `8517ac9eef50` — 1 breaking, 1 warning
  - the `modelDefinition/properties/additionalProperties/databricks/comment` request property type/format changed from ``/`` to `string`/``
  - removed the request property `modelProfile`

[Change history](https://skmtc.dev/ohdsi/apis/data-connection/changes/scan-requests/:id/scan-request-logs/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/17f92620449e/schema)
