---
title: "Submit Data to Catalog"
method: POST
path: "/v1/jobs/{jobId}/catalog-data"
tags: ["Custom Scan"]
---

# Submit Data to Catalog

`POST /v1/jobs/{jobId}/catalog-data`

Use this API to submit metadata for cataloging for a given custom connector scan job.

## Path parameters

- `jobId` integer, required

## Request body

- MetadataRequests
  - `metadataRequestList` MetadataRequest[]
    - `jobId` integer, required — The custom connector scan job's identifier. This value can be obtained using the [Get List of Scan Jobs](/onetrust/reference/geteligiblejobsusingget) API.
    - `datasourceId` string, required — ID of the data source. This value can be obtained using the [Get Data Sources](/onetrust/reference/getallusingget_1) API.
    - `parentEntityName` string — Parent Entity Name
    - `parentType` 'DATASOURCE' | 'DATABASE' | 'SCHEMA' | 'CATALOG' | 'TABLE' | 'FOLDER' — Parent Entity Type
    - `parentXPath` string[] — Parent Path
    - `metadataList` union[], required — List of Metadata objects to catalog
      - union
        - ColumnMetadata
          - `Entity Name ` string, required
          - `entityType` string, required — Entity Type
          - `Content Type` string
          - `Children Count` integer
          - `Description` string
          - `Column Index` integer
          - `Nullable` boolean
          - `Encryption` string
          - `Estimated Size` integer
          - `Calculated Average Size` integer
          - `Timestamp when Size was calculated` integer
          - `Column Description` string
        - DatabaseMetadata
          - `Entity Name ` string, required
          - `entityType` string, required — Entity Type
          - `Content Type` string
          - `Children Count` integer
          - `Description` string
          - `Owner` string
          - `Product Version` string
          - `Product Name` string
          - `Product Family` string
        - FileMetadata
          - `Entity Name ` string, required
          - `entityType` string, required — Entity Type
          - `Content Type` string
          - `Children Count` integer
          - `Description` string
          - `Size on Disk` integer
          - `Data Extraction Size` integer
          - `Last Modified Date` integer
          - `Last Modified by User` string
          - `Created At Timestamp` integer
          - `Created By Timestamp` string
          - `Last Accessed Timestamp` integer
          - `File Owner` string
          - `Encryption` string
          - `Shared Access` 'SHARED_EXTERNAL' | 'SHARED_INTERNAL' | 'SHARED_PRIVATE' | 'OPEN_ACCESS' | 'SHARED_ACCESS'
          - `Resource URL` string
          - `etag` string
        - SchemaMetadata
          - `Entity Name ` string, required
          - `entityType` string, required — Entity Type
          - `Content Type` string
          - `Children Count` integer
          - `Description` string
          - `Version` integer
        - TableMetadata
          - `Entity Name ` string, required
          - `entityType` string, required — Entity Type
          - `Content Type` string
          - `Children Count` integer
          - `Description` string
          - `Rows Estimated` integer
          - `Size Estimate` integer
          - `Estimate Timestamp` integer
          - `Rows Calculated` integer
          - `Size Calculated` integer
          - `Calculated Timestamp` integer
          - `Comments` string

## Response `200`

OK

## Other responses

- `429` — Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).

---

[API](https://skmtc.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/revisions/21de3aa0b170/schema)
