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

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

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

## Path parameters

- `id` number, required

## Request body

- NewScanRequestLogInScanRequest — (tsType: @loopback/repository-json-schema#Optional<Omit<ScanRequestLog, 'id'>, 'scanRequestId'>, schemaOptions: { title: 'NewScanRequestLogInScanRequest', exclude: [ 'id' ], optional: [ 'scanRequestId' ] })
  - `scanRequestId` number
  - `status` 'complete' | 'in progress', required
  - `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
    - `settings` object, required
      - `databricks` object
        - `catalog` string
        - `database` string
        - `tableName` string
        - `isTemporary` boolean

## Response `200`

ScanRequest model instance

- ScanRequestLog
  - `id` number
  - `scanRequestId` number, required
  - `status` 'complete' | 'in progress', required
  - `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
    - `settings` object, required
      - `databricks` object
        - `catalog` string
        - `database` string
        - `tableName` string
        - `isTemporary` boolean

## Changes

- **2026-07-17** `b5ead99a1d44` — 1 breaking, 2 warning, 3 info
  - added the new required request property `modelProfile/settings`
  - removed the request property `modelProfile/PropertyProfiles`
  - removed the optional property `modelProfile/PropertyProfiles` from the response with the `200` status
  - added the new optional request property `modelProfile/propertyProfiles`
  - …2 more
- **2022-12-15** `17f92620449e` — 2 info
  - added the new optional request property `modelProfile`
  - added the optional property `modelProfile` to the response with the `200` status
- **2022-11-29** `f9eb0e2fcd7e` — 2 breaking
  - the `modelDefinition/properties/additionalProperties/databricks/comment` request property type/format changed from `string`/`` to ``/``
  - the `modelDefinition/properties/additionalProperties/databricks/comment` response's property type/format changed from `string`/`` to ``/`` for status `200`
- **2022-11-28** `8517ac9eef50` — 2 breaking, 2 warning
  - the `modelDefinition/properties/additionalProperties/databricks/comment` request property type/format changed from ``/`` to `string`/``
  - the `modelDefinition/properties/additionalProperties/databricks/comment` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - removed the request property `modelProfile`
  - removed the optional property `modelProfile` from the response with the `200` status

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