Skip to main content
POST
Preview the rows of a query of the mapping

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

subscriptionId
string
required

Unique subscription identifier.

Body

application/json
binding
string
required

The whole mapping, as YAML, exactly as a save would send it. It is planned against the subscription's pinned contract and NEVER saved.

Example:

"contract: br.example.document\nqueries: []\n"

query
string
required

The query of the mapping to read.

Example:

"saldos"

limit
integer<int64>

How many rows to answer, 1 to 100. Absent: 20.

Example:

20

parameters
object

Generation parameters the query's filters read, as a generation would be given them. Only the ones supplied are validated; the closed-period rule does not apply to a preview.

Response

OK

columns
string[] | null
required

The columns the query answers, in order: its groups then its sums when it aggregates; the columns it selects, else the ones it reads, when it does not.

Example:
durationMs
integer<int64>
required

How long the read took.

Example:

41

hasMore
boolean
required

True when the query has more rows than the limit; the rows were cut, never refused.

Example:

false

limit
integer<int64>
required

The limit applied.

Example:

20

query
string
required

The query read.

Example:

"saldos"

rows
object[] | null
required

At most limit rows, each keyed by the columns above. A number is its decimal text, never a float; null is null.