Pular para o conteúdo principal
POST
Register a file dataset

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string

Client-provided idempotency key that prevents duplicate file dataset creation

Corpo

application/json

JSON request payload.

configName
string
obrigatório

Name the dataset answers to in templates and queries; letters, digits, underscores and hyphens, up to 100 characters.

Exemplo:

"daily-deliveries"

contract
string
obrigatório

The whole text of the contract file; the text must be a JSON object. Reporter stores these bytes unchanged as version 1, so the SHA-256 of the version is the SHA-256 of the file.

Exemplo:

"{\"files\":[{\"table\":\"entries\",\"name\":\"entries-{yyyy}{MM}{dd}.csv\",\"format\":\"csv\",\"required\":true,\"csv\":{\"delimiter\":\";\",\"header\":true,\"encoding\":\"utf-8\",\"decimalSeparator\":\".\"},\"columns\":[{\"name\":\"id\",\"source\":\"id\",\"type\":\"integer\",\"required\":true}]}],\"layout\":{\"dayPath\":\"{yyyy}/{MM}/{dd}\"}}"

fileSourceId
string
obrigatório

Identifier of the file source the dataset reads from.

Exemplo:

"0190a6e0-7c1b-7a3e-9d5f-3b8c2e1a4f60"

schedule
object
obrigatório

When the dataset expects its files.

Resposta

Created

builtIn
boolean

True for a data source the platform provides from the tenant's Lerian module databases; read-only, never registered

Exemplo:

false

configName
string

Stable business key referenced by templates

Exemplo:

"midaz_onboarding"

createdAt
string<date-time>

Creation timestamp in UTC

Exemplo:

"2026-01-01T00:00:00Z"

databaseName
string

Database name

Exemplo:

"onboarding"

fileDataset
object

Source and schedule of a file dataset; present only when type is file

host
string

Database host

Exemplo:

"db.internal"

id
string

Unique data source identifier

Exemplo:

"00000000-0000-0000-0000-000000000000"

lastConnection
object

Outcome of the most recent connectivity probe; absent means never probed, which is not the same as failed

metadata
object

Free-form metadata

options
string

MongoDB URI options string (e.g. authSource=admin); mongodb only

Exemplo:

"authSource=admin"

port
integer<int64>

Database port

Exemplo:

5432

schemas
string[] | null

PostgreSQL schemas to expose

Exemplo:
sslCaBase64
string

Base64-encoded PEM CA bundle for MongoDB or PostgreSQL; never a private key. PostgreSQL requires sslMode verify-ca or verify-full.

Exemplo:

""

sslMode
string

TLS mode: disable, require, verify-ca, or verify-full. The two engines read require differently: MongoDB's driver verifies the server certificate under require (verify-full in effect), PostgreSQL's encrypts without verifying it; verify-full means the same on both.

Exemplo:

"require"

type
string

Data source engine type

Exemplo:

"postgresql"

updatedAt
string<date-time>

Most recent update timestamp in UTC

Exemplo:

"2026-01-01T00:00:00Z"

username
string

Database username

Exemplo:

"reporter_ro"