Skip to main content
POST
Get report type schema for a context

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

The Extole unique report type identifier.

Body

application/json
parameters
object
required

Report parameter values to resolve the schema against, keyed by parameter name. Only parameters the report type contextualizes its schema on are accepted. A parameter left out resolves to the report type's declared default. A supplied value, including a blank value, is used as supplied. An empty map resolves the schema exactly as the parameterless read does. Pass these same values to POST /v4/reports to run the report that emits the returned columns.

Response

Schema the report type produces for the supplied context, with output columns or representative nested JSON rows, alongside the parameter values it was resolved against.

columns
object[]
required

Columns the report type produces, in output order.

context_parameters
object
required
read-only

Report parameters this schema was resolved against, keyed by parameter name. Each one can change the schema; supply report parameter values in the POST request body to resolve the schema against a different context. A value is what the caller supplied, otherwise the report type's declared default; parameters with neither are absent, and leaving one out resolves the schema against the report type's own default behavior rather than making the answer partial. Run the report with these same parameter values to get these same columns and representative rows. Empty for report types whose schema does not depend on context.

report_type_id
string
required
read-only

Id of the report type this schema belongs to. Pass it to GET /v6/report-types/{id}/schema to fetch this schema on its own.

sample_rows
object[]
required

Representative nested JSON output row shapes for this context. These are mock shapes, not report data and not a JSON Schema.