JSON Schema for QueryApi

Type: object

Definitions:

QueryApi.SchemaFieldsQueryOutput

Type: object

Describes the schema (field names and data types) of a table query source or result table.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SchemaFieldsQueryOutput'>Auto-generated example JSON</a>

No Additional Properties

Type: array

The fields in this table.

No Additional Items

Each item of this array must be:

QueryApi.SchemaField

Type: object

Describes a single field in the source data.
An array of these objects forms the response body for the /schema/fields endpoint.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SchemaField'>Auto-generated example JSON</a>

No Additional Properties

Type: string

The name of the output field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.

Type: enum (of string)

The data type of the field.

Must be one of:

  • "TEXT"
  • "NUMBER"
  • "DATE"
  • "RANGE_NUMBER"
  • "RANGE_DATE"

Type: number

The granularity of the field. The smallest increment that the field can model. Relevant to number fields (e.g. 1 for integer fields, 0.1 for precision to 1dp) and date fields (the number of milliseconds e.g. 3600000 for precision to 1 hour).
Example: 123.45


Formatting options for the field.

QueryApi.NumericFieldFormattingOptions

Type: object

Describes a numeric values should be formatted for a field
<a target='_blank' href='../schema-example.json?typeId=QueryApi.NumericFieldFormattingOptions'>Auto-generated example JSON</a>

No Additional Properties

Type: boolean Default: false

If true the numeric values should be rendered as a percentage.
Example: true

Type: boolean Default: true

If true, thousand separator should be visible, false it should not be visible
Example: true

Type: number

If present specifies the number of decimal places to be shown
Example: 123.45

Type: string

If present a prefix to be displayed before the numeric value

Type: string

If present a suffix to be displayed after the numeric value (before the % sign, if relevant)

QueryApi.DateFieldFormattingOptions

Type: object

Describes how date values should be formatted
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DateFieldFormattingOptions'>Auto-generated example JSON</a>

No Additional Properties

Type: string

Specifies the pattern on how the date value should be formatted. e.g, yyyy-MM-dd'T'HH:mm:ss

QueryApi.DateRangeFieldFormattingOptions

Type: object

Describes a how field should be formatted when displayed
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DateRangeFieldFormattingOptions'>Auto-generated example JSON</a>

No Additional Properties

QueryApi.TableQueryDiagnostics

Type: object

Diagnostics associated with a query api request
<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableQueryDiagnostics'>Auto-generated example JSON</a>

No Additional Properties

Type: number

Example: 123.45

QueryApi.TableQueryVertexDiagnostics

Type: object

<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableQueryVertexDiagnostics'>Auto-generated example JSON</a>

No Additional Properties

Type: array
No Additional Items

Each item of this array must be:

QueryApi.TableQueryVertexDiagnostics

Type: object

<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableQueryVertexDiagnostics'>Auto-generated example JSON</a>

Same definition as queryVertexDiagnostics

QueryApi.SchemaFieldsQueryOutput

Type: object

Describes the schema (field names and data types) of a table query source or result table.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SchemaFieldsQueryOutput'>Auto-generated example JSON</a>

Same definition as QueryApi.SchemaFieldsQueryOutput

QueryApi.AdditionalDiagnostics

Type: object

<a target='_blank' href='../schema-example.json?typeId=QueryApi.AdditionalDiagnostics'>Auto-generated example JSON</a>

Type: string

An identifier for the query used to track diagnostics on the server side

Type: string

If the query has been executed as part of a composite query, it's the queryTag of the composite query. Null otherwise.
For example, the parentQueryTag of a table api request executed as part of a Batch request, would be the queryTag
of the batch query.

Type: string

A brief description of why the query was executed

Type: boolean Default: false

If the QueryNode is editable in the implementation.
This refers to 'structural editability' and does not include editing permissions.
In other words this would true if the source of the query support editing, and each operation
also allows for editing. If this is true, and EditAgainst query could be submitted with the query as input
Example: true

QueryApi.SchemaField

Type: object

Describes a single field in the source data.
An array of these objects forms the response body for the /schema/fields endpoint.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SchemaField'>Auto-generated example JSON</a>

Same definition as QueryApi.SchemaField

QueryApi.SimpleQuery

Type: object

Request body for the /table endpoints. Field order in output will be identical to 'fields' if specified, otherwise respective to 'groupings' then 'measures'.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SimpleQuery'>Auto-generated example JSON</a>

No Additional Properties

Type: array of string

Relevant for a 'raw' table query. The list of fields to retrieve
Aliases: field

No Additional Items

Each item of this array must be:

Type: array

Relevant for a 'grouped' table query. The list of groupings to apply to the data, zero/missing meaning roll-up to a single record.
Aliases: grouping

No Additional Items

Each item of this array must be:

QueryApi.Grouping

Type: object

Describes a single level/tier of grouping, similar an SQL GROUP BY condition or Omniscope "Bar" view's 'Split' option.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Grouping'>Auto-generated example JSON</a>

No Additional Properties

Type: string

The name of the input field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.
Aliases: field

Type: enum (of string) Default: "UNIQUE_VALUES"

The method for bucketing/grouping the data. UNIQUE_VALUES is comparable to GROUP BY in SQL.

Must be one of:

  • "UNIQUE_VALUES"
  • "HISTOGRAM"

Type: enum (of string)

Relevant when #type is HISTOGRAM and #inputField is a date type.
If the input field has some formatting options, these will be amended to drop no longer significant sections.
If the input field does not have formatting options, a new date formatting will be introduced with pattern 'yyyy-MM-dd hh:mm:ss'
dropped to the unit specified.
For example, if the input field does not have a formatting and we are grouping by hour, the
output field will have a date formatting options with pattern dd/MM/yyyy HH

Must be one of:

  • "YEAR"
  • "QUARTER"
  • "MONTH"
  • "WEEK"
  • "DAY"
  • "HOUR"
  • "MINUTE"
  • "SECOND"

Type: number

Required when #type is HISTOGRAM. The width of each histogram interval. For DATE fields, must be integer and also factors of 60 (for minutes/seconds), 24 (hours), 12 (months), precisely 1 (days), or any integer (years).
Example: 123.45

Type: array

Relevant and mandatory when #type is SEQUENCE. The list of configurations that this grouping is a sequence of. Can contain either exclusively Measures or exclusively Groupings, not a mix.

No Additional Items

Each item of this array must be:


QueryApi.Measure

Type: object

Describes how to roll up numeric/date data, thereby producing an additional aggregated column in the output.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Measure'>Auto-generated example JSON</a>

No Additional Properties

Type: string

The name of the output field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.
If left unspecified a default name will be assigned as the name of the input field followed by the name of the function between parenthesis. It is a good practice to not, rely on this automatic name generation but use an explicit name where necessary

Type: string

Relevant when #function is a field-specific function such as SUM, MIN, MEAN. The name of the input field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.
Aliases: field

Type: string

Relevant when #function is {@link MeasureFunction#MEAN} to specify a weighted mean.

Type: enum (of string)

The aggregation function to roll up a series of values.

Must be one of:

  • "RECORD_COUNT"
  • "MIN"
  • "MAX"
  • "MEAN"
  • "SUM"
  • "SINGLETON"
  • "UNIQUE_VALUE_COUNT"
  • "STANDARD_DEVIATION"
  • "MEDIAN"
  • "LOWER_QUARTILE"
  • "UPPER_QUARTILE"
  • "PERCENTILE"
  • "MODE"
  • "EMPTY_COUNT"
  • "NON_EMPTY_COUNT"
  • "FORMULA"

Type: number

Must be populated if and only if the function is PERCENTILE. If populated its value must be between 0 and 100 inclusive.
+The result of the measure will be the value of the field below which a this percentage of values will fall.
For example, if set to 20, the result of the measure will be the value below which 20% of the field values are found
Example: 123.45


Relevant (but optional) when #function is CONTEXTUALFROMSEQUENCE. Uniquely identifies the SEQUENCE measure which this measure reflects contextually; matches #id in the grouping of type SEQUENCE.Not needed if there is only one SEQUENCE-of-measures.

Type: string

Relevant when #function is FORMULA only. The formula itself, such as SUBSET_SUM([a]) / SUBSET_MEAN([b]).

Type: stringFormat: color

Example: "rgba(255,255,255,1)"

QueryApi.MeasureLabelOptions

Type: object

<a target='_blank' href='../schema-example.json?typeId=QueryApi.MeasureLabelOptions'>Auto-generated example JSON</a>

No Additional Properties

CustomViewApi.TextStyle

Type: object

<a target='_blank' href='../schema-example.json?typeId=CustomViewApi.TextStyle'>Auto-generated example JSON</a>

No Additional Properties

Type: enum (of string)

Must be one of:

  • "LEFT"
  • "RIGHT"
  • "HIDDEN_SHARED"
  • "HIDDEN_INDEPENDENT"

QueryApi.NumericFieldFormattingOptions

Type: object

Describes a numeric values should be formatted for a field
<a target='_blank' href='../schema-example.json?typeId=QueryApi.NumericFieldFormattingOptions'>Auto-generated example JSON</a>

Same definition as QueryApi.NumericFieldFormattingOptions

QueryApi.DateFieldFormattingOptions

Type: object

Describes how date values should be formatted
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DateFieldFormattingOptions'>Auto-generated example JSON</a>

Same definition as QueryApi.DateFieldFormattingOptions

QueryApi.Grouping

Type: object

Describes a single level/tier of grouping, similar an SQL GROUP BY condition or Omniscope "Bar" view's 'Split' option.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Grouping'>Auto-generated example JSON</a>

Same definition as QueryApi.Grouping


Relevant (but optional) when #type is SEQUENCE. An ID which uniquely identifies this grouping within the enclosing grid or table query. Not needed if this is the only SEQUENCE-of-measures or SEQUENCE-of-groupings. Can be a number or string.


Relevant (but optional) when #type is CONTEXTUALFROMSEQUENCE. Uniquely identifies the SEQUENCE grouping which this grouping reflects contextually; matches #id in the grouping of type SEQUENCE.Not needed if there is only one SEQUENCE-of-groupings.

Type: number

Example: 123.45

Type: string

The name of the output field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.

Type: array

Relevant for a 'grouped' table query. The list of functions to calculate for each group result, which aggregates data from all records in that group. Can be omitted if only group value combinations are required.
Aliases: measure

No Additional Items

Each item of this array must be:

QueryApi.Measure

Type: object

Describes how to roll up numeric/date data, thereby producing an additional aggregated column in the output.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Measure'>Auto-generated example JSON</a>

Same definition as QueryApi.Measure

QueryApi.Filter

Type: object

Optional filtering to apply to the source data before any other groupings or calculations.
Aliases: filters

No Additional Properties

Type: enum (of string) Default: "FIELD_VALUE"

Must be one of:

  • "FIELD_VALUE"
  • "AND"
  • "OR"
  • "NOT"

Type: string

Relevant when #type is FIELD_VALUE only. The name of the input field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.
Aliases: field

Type: enum (of string)

Relevant when #type is FIELD_VALUE only. Default EQUALS. Note that operators such as ">=" implicitly exclude NULL values.

Must be one of:

  • "="
  • "EQUALS_IGNORE_CASE"
  • "!="
  • "<"
  • "<="
  • ">"
  • ">="
  • "IN"
  • "CONTAINS"
  • "CONTAINS_IGNORE_CASE"


Relevant when #type is FIELD_VALUE only. The value to compare against, or for #operator IN, an array of values. Can be null for "EQUALS null" rule, or an array containing null for "IN (..., null, ...)" rule. Note that (e.g.) EQUALS(42) will match only 42 and will implicitly exclude all nulls; likewise NOT(EQUALS(42)) will match only 'not 42' so will implicitly include nulls and all other numbers. ValueRange objects can be used here to provide minumum and maximum bounds. Long values greater than 2^53 can be written as String to maintain precision.
Aliases: values

Type: number

Example: 123.45

Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

QueryApi.ValueRange

Type: object

Stores lower and upper bound values of a range.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.ValueRange'>Auto-generated example JSON</a>

No Additional Properties


Lower bound of range - inclusive

Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC


Upper bound of range - exclusive

Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

Type: array
No Additional Items

Each item of this array must be:


Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

QueryApi.ValueRange

Type: object

Stores lower and upper bound values of a range.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.ValueRange'>Auto-generated example JSON</a>

Same definition as QueryApi.ValueRange

Type: array

Relevant when #type is AND, OR or NOT. The nested filters to combine in an AND or OR rule (can be empty for FULL or NONE selections respectively), or a single nested filter for a NOT rule.
Aliases: filter

No Additional Items

Each item of this array must be:

QueryApi.Filter

Type: object

Describes a single constraint (or a group of constraints with logical combination), equivalent to an SQL WHERE clause item.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Filter'>Auto-generated example JSON</a>

Same definition as filter

Type: array

Optional sort that is applied to the resulting rows. Sort happens after fields, or groupings and measures, have been calculated, and will disrupt the natural order of groupings in a multi-grouping query. You can sort by any field(s) in the output.
Aliases: sort

No Additional Items

Each item of this array must be:

QueryApi.TableSort

Type: object

Describes an output field to sort all rows by, irrespective of groupings. The field can contain raw, grouping or measure data.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableSort'>Auto-generated example JSON</a>

No Additional Properties

Type: string

Specify your sort by providing the input field name. If there are duplicates, the first is chosen.
Aliases: sourceField

Type: enum (of string)

The direction to sort in. Default ASCENDING.

Must be one of:

  • "ASCENDING"
  • "DESCENDING"

Type: array
No Additional Items

Each item of this array must be:


Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

QueryApi.Range

Type: object

Optional range restriction, applied after sorting the output. Allows you to limit or page through the data. Some implementations may perform poorly when using this over large results.

No Additional Properties

Type: number

The first row to retrieve, counting from zero. Defaults to zero if unspecified.
Example: 123.45
Aliases: offset

Type: number

The number of rows to retrieve. Unbounded if unspecified. It must be a positive integer, or null.
Example: 123.45
Aliases: size

Type: array

The list of formula variable values that are available for use within formula measures.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

No Additional Properties

Type: string

The unique name of the variable. Note this is case insensitive unique and must not conflict with any field names.


The variable value, of any type corresponding to {@link VariableDataType}; can be null.

Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

Type: enum (of string)

The explicit data type of this variable. This is mandatory if value is null, because it cannot be inferred.

Must be one of:

  • "BOOLEAN"
  • "TEXT"
  • "NUMBER"
  • "DATE"

Type: boolean Default: true

Example: true

Type: boolean Default: false

Example: true

Type: object

The single input to this operation. Optional. For example, a SimpleQuery.

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.TableQueryOutput

Type: object

Response body for the /table endpoints.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableQueryOutput'>Auto-generated example JSON</a>

No Additional Properties

QueryApi.SchemaFieldsQueryOutput

Type: object

Metadata about each output column.

Same definition as QueryApi.SchemaFieldsQueryOutput

Type: array of array

Output data table containing the resulting data rows and columns. A 2d array indexed [row][column]. Cells are data values (numbers, dates, strings) or ValueRanges (in group columns for histogram groupings).

No Additional Items

Each item of this array must be:

Type: array
No Additional Items

Each item of this array must be:


Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

QueryApi.ValueRange

Type: object

Stores lower and upper bound values of a range.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.ValueRange'>Auto-generated example JSON</a>

Same definition as QueryApi.ValueRange

QueryApi.TableQueryDiagnostics

Type: object

Diagnostics associated with a query api request
<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableQueryDiagnostics'>Auto-generated example JSON</a>

Same definition as diagnostics

QueryApi.FieldMappingOperation

Type: object

Describes a single layer within a query for mapping fields to include in the result. Field order in output will be: (1) mapping fields; (2) other input fields, if includeAllInputFields=true
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FieldMappingOperation'>Auto-generated example JSON</a>

No Additional Properties

Type: array

The list of field mappings to include in the result. They are applied in order as defined.

No Additional Items

Each item of this array must be:

QueryApi.FieldMapping

Type: object

Describes a mapping for an input field to its new name and other properties
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FieldMapping'>Auto-generated example JSON</a>

No Additional Properties

Type: string

The name of the output field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.

Type: string

The name of the input field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.

Type: string

A literal value to repeat in every cell for this field.


The expression to be evaluated on the (input) record (as a Filter or FormulaExpression). If a boolean expression (as a Filter), the result will be "true", or "false" accordingly.

QueryApi.Filter

Type: object

Describes a single constraint (or a group of constraints with logical combination), equivalent to an SQL WHERE clause item.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Filter'>Auto-generated example JSON</a>

Same definition as filter

QueryApi.FormulaExpression

Type: object

Encapsulates a formula for a FieldMapping
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaExpression'>Auto-generated example JSON</a>

No Additional Properties

Type: enum (of string)

Must be one of:

  • "TEXT"
  • "NUMBER"
  • "DATE"
  • "RANGE_NUMBER"
  • "RANGE_DATE"

Type: array

Set a custom order to be applied when sorting by the field.
Values not present in this list, but present in the data will be set after any of the specified value following the natural order.
Values present in this list, but not present in the data will be ignored.
If a custom order is already defined for this field, This will take precedence.If null, the natural order will be applied when sorting by the output field (if no custom order already exists for the field).
Custom order cannot be defined on range fields.

No Additional Items

Each item of this array must be:


The formatting options for the output field.
If not null, this will override any any existing formatting options associated to the field.
Formatting options will be propagated troughout the query dag, and they will instruct the client o how o format the field value.

QueryApi.NumericFieldFormattingOptions

Type: object

Describes a numeric values should be formatted for a field
<a target='_blank' href='../schema-example.json?typeId=QueryApi.NumericFieldFormattingOptions'>Auto-generated example JSON</a>

Same definition as QueryApi.NumericFieldFormattingOptions

QueryApi.DateFieldFormattingOptions

Type: object

Describes how date values should be formatted
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DateFieldFormattingOptions'>Auto-generated example JSON</a>

Same definition as QueryApi.DateFieldFormattingOptions

Type: boolean

If false (default) it will only include the fields defined in the mappings. If true it will include all input fields not otherwise selected. The field order will be preserved and fields will be added after any mapping. If any input field omitted from mappings conflicts with a new field added with the same name, it will be invalid.
Example: true

Type: array

The list of formula variable values that are available for use within formula fields.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

Same definition as QueryApi.FormulaVariable

Type: enum (of string) Default: "DEPEND_UPON_INPUT"

Must be one of:

  • "DEPEND_UPON_INPUT"
  • "DEPEND_UPON_OUTPUT"
  • "AUTO"

Type: object

The single input to this operation. Optional. For example, a SimpleQuery.

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.IndexedSource

Type: object

Describes the innermost layer within a query representing all data in an indexed source.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.IndexedSource'>Auto-generated example JSON</a>

No Additional Properties

Type: number Default: 0

Example: 123.45

Type: array

The list of variable values used to customise the source.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

Same definition as QueryApi.FormulaVariable

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.SortOperation

Type: object

Describes a single layer within a query for sorting records in an input. Field order in output will be identical to the input.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SortOperation'>Auto-generated example JSON</a>

No Additional Properties

Type: array

Sorting applied to the records.
Aliases: sort

No Additional Items

Each item of this array must be:

QueryApi.TableSort

Type: object

Describes an output field to sort all rows by, irrespective of groupings. The field can contain raw, grouping or measure data.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableSort'>Auto-generated example JSON</a>

Same definition as QueryApi.TableSort

Type: object

The single input to this operation. Optional. For example, a SimpleQuery.

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.RecordFilterOperation

Type: object

Describes a single layer within a query for filtering records in an input. Field order in output will be identical to the input.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.RecordFilterOperation'>Auto-generated example JSON</a>

No Additional Properties

QueryApi.Filter

Type: object

Filtering applied to the records.
Aliases: filters

Same definition as filter

Type: object

The single input to this operation. Optional. For example, a SimpleQuery.

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.DefaultSource

Type: object

Describes the innermost layer within a query representing all data in the default source.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DefaultSource'>Auto-generated example JSON</a>

No Additional Properties

Type: array

The list of variable values used to customise the source.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

Same definition as QueryApi.FormulaVariable

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.NamedSource

Type: object

Describes the innermost layer within a query representing all data in a named source.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.NamedSource'>Auto-generated example JSON</a>

No Additional Properties

Type: string

Type: array

The list of variable values used to customise the source.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

Same definition as QueryApi.FormulaVariable

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.AppendOperation

Type: object

Describes a single layer within a query for appending multiple inputs. Field order in output will be: (1) source field, if relevant; (2) field names from first input; (3) field names from second input not already present; ...
<a target='_blank' href='../schema-example.json?typeId=QueryApi.AppendOperation'>Auto-generated example JSON</a>

No Additional Properties

Type: string

Name of the optional source field. If populated the cells values will be populated 0, 1, 2, .... depending on which input table the record come from

Type: array of object

The inputs into this operation. For example, each might be a SimpleQuery.

No Additional Items

Each item of this array must be:

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.JoinOperation

Type: object

Describes a single layer within a query for joining two inputs into one. Field order in output will be: (1) source field (if any); (2) common fields in criteria; (3) left fields not in criteria; (4) right fields not in criteria.If right fields non in criteria have the same name as a left field non in criteria, right fields will be renamed with the original name followed by a space and integer number (e.g., 'A', 'A 2', 'A 3' (if 'A 2' is already a left field)).
<a target='_blank' href='../schema-example.json?typeId=QueryApi.JoinOperation'>Auto-generated example JSON</a>

No Additional Properties

Type: object

The left input to the join. For example, a SimpleQuery.

Type: object

The right input to the join. For example, a SimpleQuery.

Type: array

The list of criteria to apply.

No Additional Items

Each item of this array must be:

QueryApi.JoinCriteria

Type: object

Describes a join criteria. Fields joined must be of the same type, and in case of ranges they must be associated with the same range type, and interval
<a target='_blank' href='../schema-example.json?typeId=QueryApi.JoinCriteria'>Auto-generated example JSON</a>

No Additional Properties

Type: string

The left field of a join.

Type: string

The right field of a join.

Type: boolean Default: false

Include left input mismatches in the result. False by default
Example: true

Type: boolean Default: true

Include matches in the result. True by default
Example: true

Type: boolean Default: false

Include right input mismatches in the result. False by default
Example: true

Type: string

Name of the optional source field. If populated, this will be a new field whose values indicate the table where records come from.
If the values of the criteria fields are only present in the left input, this will be set to Left
If the values of the criteria fields are only present in the right input this will be set to Right
If the values of the criteria fields are present in both left and right input this will be set to Left, Right
The field must be named in a way that it does not collide with any of the output fields.

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.InlineDataSource

Type: object

Describes the innermost layer within a query representing a literal json-supplied source data table.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.InlineDataSource'>Auto-generated example JSON</a>

No Additional Properties

QueryApi.TableQueryOutput

Type: object

Response body for the /table endpoints.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableQueryOutput'>Auto-generated example JSON</a>

Same definition as QueryApi.TableQueryOutput

Type: array

The list of variable values used to customise the source.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

Same definition as QueryApi.FormulaVariable

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.AggregateOperation

Type: object

Describes a single layer within a query for aggregating an input. Field order in output will be: (1) grouping fields; (2) measure fields
<a target='_blank' href='../schema-example.json?typeId=QueryApi.AggregateOperation'>Auto-generated example JSON</a>

No Additional Properties

Type: array

The list of groupings to apply to the input, zero/missing meaning roll-up to a single record.
Aliases: grouping

No Additional Items

Each item of this array must be:

QueryApi.Grouping

Type: object

Describes a single level/tier of grouping, similar an SQL GROUP BY condition or Omniscope "Bar" view's 'Split' option.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Grouping'>Auto-generated example JSON</a>

Same definition as QueryApi.Grouping

Type: array

The list of functions to calculate for each group result, which aggregates data from all records in that group. Can be omitted if only group value combinations are required.
Aliases: measure

No Additional Items

Each item of this array must be:

QueryApi.Measure

Type: object

Describes how to roll up numeric/date data, thereby producing an additional aggregated column in the output.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Measure'>Auto-generated example JSON</a>

Same definition as QueryApi.Measure

Type: array

The list of formula variable values that are available for use within formula measures.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

Same definition as QueryApi.FormulaVariable

Type: object

The single input to this operation. Optional. For example, a SimpleQuery.

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.RangeOperation

Type: object

Describes a single layer within a query for restricting the records in an input based upon their row index. Field order in output will be identical to the input.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.RangeOperation'>Auto-generated example JSON</a>

No Additional Properties

QueryApi.Range

Type: object

Allows you to limit or page through the data.

Same definition as range

Type: object

The single input to this operation. Optional. For example, a SimpleQuery.

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.GridQueryInput

Type: object

Request body for the /grid endpoints. Defines the configuration of an n-dimensional grid of data (e.g. x and y axes).
<a target='_blank' href='../schema-example.json?typeId=QueryApi.GridQueryInput'>Auto-generated example JSON</a>

No Additional Properties

Type: enum (of string)

Must be one of:

  • "COMBINED"
  • "SIZE"
  • "DATA"

Type: object

The single input to this operation.

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

Type: array

Describes up to 3 axes in the grid, with a series of grouping values (or permutations for multiple tiers of groupings) creating grid columns/rows. Allows null entries, which are equivalent to a no-groupings axis (single row/column). No axes means a single cell. Typically two axes (y, x) resulting in 2-dimensional grid data organised [row][column].

No Additional Items

Each item of this array must be:

QueryApi.GridAxisInput

Type: object

Configures one axis in a grid query.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.GridAxisInput'>Auto-generated example JSON</a>

No Additional Properties

Type: array

The tiers to group by, or null/empty to have a single summary/totals row/column (fully rolled-up).
Aliases: grouping

No Additional Items

Each item of this array must be:

QueryApi.AxisGrouping

Type: object

Describes a single level/tier of grouping, similar an SQL GROUP BY condition or Omniscope "Bar" view's 'Split' option.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.AxisGrouping'>Auto-generated example JSON</a>

No Additional Properties

QueryApi.AxisGroupingSort

Type: object

Optionally describes a sort order for this grouping. Overrides any grid-wide axis sort directive.

No Additional Properties

Type: enum (of string) Default: "ASCENDING"

The direction to sort in. Default ASCENDING.

Must be one of:

  • "ASCENDING"
  • "DESCENDING"

Type: string

The name of the output field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.
If left unspecified a default name will be assigned as the name of the input field followed by the name of the function between parenthesis. It is a good practice to not, rely on this automatic name generation but use an explicit name where necessary

Type: string

Relevant when #function is a field-specific function such as SUM, MIN, MEAN. The name of the input field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.
Aliases: field

Type: string

Relevant when #function is {@link MeasureFunction#MEAN} to specify a weighted mean.

Type: enum (of string)

The aggregation function to roll up a series of values.

Must be one of:

  • "RECORD_COUNT"
  • "MIN"
  • "MAX"
  • "MEAN"
  • "SUM"
  • "SINGLETON"
  • "UNIQUE_VALUE_COUNT"
  • "STANDARD_DEVIATION"
  • "MEDIAN"
  • "LOWER_QUARTILE"
  • "UPPER_QUARTILE"
  • "PERCENTILE"
  • "MODE"
  • "EMPTY_COUNT"
  • "NON_EMPTY_COUNT"
  • "FORMULA"

Type: number

Must be populated if and only if the function is PERCENTILE. If populated its value must be between 0 and 100 inclusive.
+The result of the measure will be the value of the field below which a this percentage of values will fall.
For example, if set to 20, the result of the measure will be the value below which 20% of the field values are found
Example: 123.45


Relevant (but optional) when #function is CONTEXTUALFROMSEQUENCE. Uniquely identifies the SEQUENCE measure which this measure reflects contextually; matches #id in the grouping of type SEQUENCE.Not needed if there is only one SEQUENCE-of-measures.

Type: string

Relevant when #function is FORMULA only. The formula itself, such as SUBSET_SUM([a]) / SUBSET_MEAN([b]).

Type: stringFormat: color

Example: "rgba(255,255,255,1)"

QueryApi.MeasureLabelOptions

Type: object

<a target='_blank' href='../schema-example.json?typeId=QueryApi.MeasureLabelOptions'>Auto-generated example JSON</a>

Same definition as labelOptions

Type: enum (of string)

Must be one of:

  • "LEFT"
  • "RIGHT"
  • "HIDDEN_SHARED"
  • "HIDDEN_INDEPENDENT"

QueryApi.NumericFieldFormattingOptions

Type: object

Describes a numeric values should be formatted for a field
<a target='_blank' href='../schema-example.json?typeId=QueryApi.NumericFieldFormattingOptions'>Auto-generated example JSON</a>

Same definition as QueryApi.NumericFieldFormattingOptions

QueryApi.DateFieldFormattingOptions

Type: object

Describes how date values should be formatted
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DateFieldFormattingOptions'>Auto-generated example JSON</a>

Same definition as QueryApi.DateFieldFormattingOptions

Type: boolean Default: false

If true, an additional summary column/row will be included with the measure result for the entire group (for SUM measures this will be the totals). A summary column/row will appear after all group columns/rows. The header cell will be a AllMarker. The data cells will be normal data cells.
Example: true

Type: string

The name of the input field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.
Aliases: field

Type: enum (of string) Default: "UNIQUE_VALUES"

The method for bucketing/grouping the data. UNIQUE_VALUES is comparable to GROUP BY in SQL.

Must be one of:

  • "UNIQUE_VALUES"
  • "HISTOGRAM"

Type: enum (of string)

Relevant when #type is HISTOGRAM and #inputField is a date type.
If the input field has some formatting options, these will be amended to drop no longer significant sections.
If the input field does not have formatting options, a new date formatting will be introduced with pattern 'yyyy-MM-dd hh:mm:ss'
dropped to the unit specified.
For example, if the input field does not have a formatting and we are grouping by hour, the
output field will have a date formatting options with pattern dd/MM/yyyy HH

Must be one of:

  • "YEAR"
  • "QUARTER"
  • "MONTH"
  • "WEEK"
  • "DAY"
  • "HOUR"
  • "MINUTE"
  • "SECOND"

Type: number

Required when #type is HISTOGRAM. The width of each histogram interval. For DATE fields, must be integer and also factors of 60 (for minutes/seconds), 24 (hours), 12 (months), precisely 1 (days), or any integer (years).
Example: 123.45

Type: array

Relevant and mandatory when #type is SEQUENCE. The list of configurations that this grouping is a sequence of. Can contain either exclusively Measures or exclusively Groupings, not a mix.

No Additional Items

Each item of this array must be:


QueryApi.Measure

Type: object

Describes how to roll up numeric/date data, thereby producing an additional aggregated column in the output.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Measure'>Auto-generated example JSON</a>

Same definition as QueryApi.Measure

QueryApi.Grouping

Type: object

Describes a single level/tier of grouping, similar an SQL GROUP BY condition or Omniscope "Bar" view's 'Split' option.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.Grouping'>Auto-generated example JSON</a>

Same definition as QueryApi.Grouping


Relevant (but optional) when #type is SEQUENCE. An ID which uniquely identifies this grouping within the enclosing grid or table query. Not needed if this is the only SEQUENCE-of-measures or SEQUENCE-of-groupings. Can be a number or string.


Relevant (but optional) when #type is CONTEXTUALFROMSEQUENCE. Uniquely identifies the SEQUENCE grouping which this grouping reflects contextually; matches #id in the grouping of type SEQUENCE.Not needed if there is only one SEQUENCE-of-groupings.

Type: string

The name of the output field. Field names are case insensitive but preserving, and cannot have leading or trailing whitespace.

QueryApi.AxisDifferences

Type: object

If specified, difference columns/rows are included for every adajcent pair of final-tier grouping values. The header cell will be a DifferenceMarker. The data cells will be a DifferenceCell, or null.

No Additional Properties

Type: enum (of string) Default: "BETWEEN"

Must be one of:

  • "BETWEEN"
  • "AFTER"

Type: enum (of string)

Must be one of:

  • "VALUE"
  • "PROPORTION"
  • "VALUE_AND_PROPORTION"

QueryApi.AxisSortDirective

Type: object

If specified, sort other axes by this axis (typically by values of a specific column/row in this axis).

No Additional Properties

Type: array
No Additional Items

Each item of this array must be:


Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

QueryApi.ValueRange

Type: object

Stores lower and upper bound values of a range.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.ValueRange'>Auto-generated example JSON</a>

Same definition as QueryApi.ValueRange

QueryApi.DifferenceMarker

Type: object

Stores a difference header cell marking a difference column/row.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DifferenceMarker'>Auto-generated example JSON</a>

No Additional Properties

QueryApi.AllMarker

Type: object

Marker that indicates the 'All' value when totals are included in a grouping, e.g. for grid total rows/columns
<a target='_blank' href='../schema-example.json?typeId=QueryApi.AllMarker'>Auto-generated example JSON</a>

No Additional Properties

Type: boolean Default: true

Always present, always true
Example: true

Type: enum (of string) Default: "ASCENDING"

The direction to sort in. Default ASCENDING.

Must be one of:

  • "ASCENDING"
  • "DESCENDING"

Type: string

The cell query to sort by.

Type: enum (of string)

Must be one of:

  • "VALUE"
  • "PROPORTION"
  • "VALUE_AND_PROPORTION"

QueryApi.Range

Type: object

Optionally restricts the data retrieved to a range 'window'. The range indexes refer to the 'flattened grid', i.e. rows or columns generated by combinations of grouping values in the respective axis.

Same definition as range

Type: boolean

If true, show the axis header title when exporting data. Typically the name of the grouping.
Example: true

Type: objectFormat: map

Optionally describes queries to execute for each grid cell retrieved in a Grid Data request. Each query can refer to measure function SERIES_MEASURE which can be defined in the cell query itself or in the grid axes.Respective cell data results will be returned in the output. Each cell query will be executed against the data subset obtained by the intersection of grid axis values.

Each additional property must conform to the following schema


QueryApi.SimpleQuery

Type: object

Request body for the /table endpoints. Field order in output will be identical to 'fields' if specified, otherwise respective to 'groupings' then 'measures'.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SimpleQuery'>Auto-generated example JSON</a>

Same definition as QueryApi.SimpleQuery

Type: array

The list of formula variable values that are available for use within formula measures.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

Same definition as QueryApi.FormulaVariable

QueryApi.GridQueryOutput

Type: object

Response body for the /grid endpoints. Contains axes outputs and cell query results.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.GridQueryOutput'>Auto-generated example JSON</a>

No Additional Properties

Type: array

Contains metadata and headers for the X axis of the grid

No Additional Items

Each item of this array must be:

QueryApi.GridAxisOutput

Type: object

Output metadata for one axis of a grid query.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.GridAxisOutput'>Auto-generated example JSON</a>

No Additional Properties

Type: number

The size of the grid in this axis (flattened).
Populated when GridQueryInput.requestType is 'COMBINED' or 'SIZE' only.
Example: 123.45

Type: array of array

The headers for the grid in this respective axis.
Each top-level index represents an index into the output grid, and contains a nested array containing the labels for groupings.
If you only have a single grouping, the nested arrays will all contain only 1 label, such as [["a"],["b"],["c"]].
If you have no groupings, this will be [["All"]].
Labels are data values (numbers, dates, strings) or HistogramBuckets.
Populated when GridQueryInput.requestType is 'COMBINED' or 'DATA' only.

No Additional Items

Each item of this array must be:

Type: array
No Additional Items

Each item of this array must be:


Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

QueryApi.ValueRange

Type: object

Stores lower and upper bound values of a range.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.ValueRange'>Auto-generated example JSON</a>

Same definition as QueryApi.ValueRange

QueryApi.DifferenceMarker

Type: object

Stores a difference header cell marking a difference column/row.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DifferenceMarker'>Auto-generated example JSON</a>

Same definition as QueryApi.DifferenceMarker

QueryApi.AllMarker

Type: object

Marker that indicates the 'All' value when totals are included in a grouping, e.g. for grid total rows/columns
<a target='_blank' href='../schema-example.json?typeId=QueryApi.AllMarker'>Auto-generated example JSON</a>

Same definition as QueryApi.AllMarker

Type: array
No Additional Items

Each item of this array must be:

QueryApi.SchemaField

Type: object

Describes a single field in the source data.
An array of these objects forms the response body for the /schema/fields endpoint.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SchemaField'>Auto-generated example JSON</a>

Same definition as QueryApi.SchemaField

Type: objectFormat: map

Contains the schema for each cell query, describing the fields (columns) returned in each cell query's result table. This is the same for every pane cell, so is here instead of being replicated.
Each entry in this map is respective to GridQueryInput.cellQueries (i.e. the same string keys are present). Each value is the equivalent to TableQueryOutput.schema.

Each additional property must conform to the following schema

QueryApi.SchemaFieldsQueryOutput

Type: object

Describes the schema (field names and data types) of a table query source or result table.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.SchemaFieldsQueryOutput'>Auto-generated example JSON</a>

Same definition as QueryApi.SchemaFieldsQueryOutput


Contains cell data for the grid.
Each 'cell' is enclosed in a multi-dimensional array respective to axes in the input. The index for each axis is in the 'flattened grid', i.e. representing combinations of groupings for that axis, and is offset according to the axis range criteria, if specified.
Each 'cell' contains the map of result data respective to GridQueryInput.cellQueries, each query result being the equivalent to TableQueryOutput.records, i.e. a 2d array of [rows][columns]. However the entire cell will be null if paning is active but no data is present at that grid coordinate.
But if paning is inactive (no axes configured), a singleton pane cell will always be non-null (populated with query results).
For example:
gridOutput.cells[a1][a2].split[row][column]
This retrieves the cell at coords (a1, a2) from the grid, then looks up the table results for the cell query named "split", then retrieves a value from that table at (column, row).Note that if there are no axes, this will be the cell query results for the implicit single cell, and if there is also no data, this will be null/undefined.

Type: objectFormat: map

Each additional property must conform to the following schema


Type: array of array
No Additional Items

Each item of this array must be:

Type: array
No Additional Items

Each item of this array must be:


Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

QueryApi.ValueRange

Type: object

Stores lower and upper bound values of a range.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.ValueRange'>Auto-generated example JSON</a>

Same definition as QueryApi.ValueRange

QueryApi.DifferenceCell

Type: object

Stores a difference cell containing the difference result for two adjacent value cells.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DifferenceCell'>Auto-generated example JSON</a>

No Additional Properties
Type: array of object
No Additional Items

Each item of this array must be:

Type: objectFormat: map

Each additional property must conform to the following schema


Type: array of array
No Additional Items

Each item of this array must be:

QueryApi.DifferenceCell

Type: object

Stores a difference cell containing the difference result for two adjacent value cells.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DifferenceCell'>Auto-generated example JSON</a>

Same definition as QueryApi.DifferenceCell
Type: array of array
No Additional Items

Each item of this array must be:

Type: array of object
No Additional Items

Each item of this array must be:

Type: objectFormat: map

Each additional property must conform to the following schema


Type: array of array
No Additional Items

Each item of this array must be:

QueryApi.DifferenceCell

Type: object

Stores a difference cell containing the difference result for two adjacent value cells.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DifferenceCell'>Auto-generated example JSON</a>

Same definition as QueryApi.DifferenceCell
Type: array of array
No Additional Items

Each item of this array must be:

Type: array of array
No Additional Items

Each item of this array must be:

Type: array of object
No Additional Items

Each item of this array must be:

Type: objectFormat: map

Each additional property must conform to the following schema


Type: array of array
No Additional Items

Each item of this array must be:

Type: array
No Additional Items

Each item of this array must be:

QueryApi.DifferenceCell

Type: object

Stores a difference cell containing the difference result for two adjacent value cells.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.DifferenceCell'>Auto-generated example JSON</a>

Same definition as QueryApi.DifferenceCell

QueryApi.HigherOrderApiQueryDiagnostics

Type: object

Diagnostics associated with a query api request
<a target='_blank' href='../schema-example.json?typeId=QueryApi.HigherOrderApiQueryDiagnostics'>Auto-generated example JSON</a>

No Additional Properties

Type: array
No Additional Items

Each item of this array must be:

QueryApi.TableQueryDiagnostics

Type: object

Diagnostics associated with a query api request
<a target='_blank' href='../schema-example.json?typeId=QueryApi.TableQueryDiagnostics'>Auto-generated example JSON</a>

Same definition as diagnostics

Type: number

Example: 123.45

Type: string

An identifier for the query used to track diagnostics on the server side

Type: string

If the query has been executed as part of a composite query, it's the queryTag of the composite query. Null otherwise.
For example, the parentQueryTag of a table api request executed as part of a Batch request, would be the queryTag
of the batch query.

Type: string

A brief description of why the query was executed

QueryApi.FormulaQueryInput

Type: object

Request body for the /formula endpoint. Defines the configuration of a formula expression evaluation request.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaQueryInput'>Auto-generated example JSON</a>

No Additional Properties

Type: object

The single input to this operation. Optional. For example, a SimpleQuery.

Type: array of string

The formulas to evaluate. This should be in the Omniscope formula syntax, which is similar to Excel formulae, with field references in [square brackets], e.g. SUBSET_SUM([a]) / 3. See http://archives.visokio.com/kb/kb.visokio.com/functions-guide.html for a list of Omniscope formula functions, however not all are supported here. Note, unlike classic, zero-arg function names must always be followed by brackets, e.g. RAND().

No Additional Items

Each item of this array must be:

Type: array

The list of formula variable values that are available for use within the formula.

No Additional Items

Each item of this array must be:

QueryApi.FormulaVariable

Type: object

A formula variable's current value, for a FieldMappingOperation
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaVariable'>Auto-generated example JSON</a>

Same definition as QueryApi.FormulaVariable

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.FormulaQueryOutput

Type: object

Response body for the /formula endpoint. Contains the formula result or parse/validate/evaluation error.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaQueryOutput'>Auto-generated example JSON</a>

No Additional Properties

Type: array

The formula result. Can be a String, number, Date or boolean.

No Additional Items

Each item of this array must be:


Type: number

Example: 123.45

Type: stringFormat: date-opt-time

Example: "1997-07-16", "1997-07-16T19:20:30Z" or "1997-07-16T19:20:30.452Z", always in UTC

QueryApi.FormulaError

Type: object

Description of a single formula parse/prepare/eval error, for any endpoint that uses formulas.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FormulaError'>Auto-generated example JSON</a>

No Additional Properties

Type: string

The user-displayable error message, with prefix+context+formula

Type: string

The formula which was attempted, if knon

Type: string

A prefix which classifies the type of error. Can be null.

Type: string

The user-displayable error message, without context. If null, display #message.

Type: number

The offset into the formula string, of the end of the part where the error relates to, if known
Example: 123.45

Type: number

The offset into the formula string, of the start of the part where the error relates to, if known
Example: 123.45

QueryApi.HigherOrderApiQueryDiagnostics

Type: object

Diagnostics associated with a query api request
<a target='_blank' href='../schema-example.json?typeId=QueryApi.HigherOrderApiQueryDiagnostics'>Auto-generated example JSON</a>

Same definition as diagnostics

QueryApi.EditSequence

Type: object

Request body for the /edit endpoint. A batch of edits to apply in a specific sequence
<a target='_blank' href='../schema-example.json?typeId=QueryApi.EditSequence'>Auto-generated example JSON</a>

No Additional Properties

Type: array of object

The sequence of edits. Must be applied in given sequence.

No Additional Items

Each item of this array must be:

Type: string

A comment string associated to the query. A comment will have no effect on the query result and it is meant a human readable explanation of what the query purpose is.

QueryApi.EditResult

Type: object

Response body for the /edit endpoint. Result of an edit API call
<a target='_blank' href='../schema-example.json?typeId=QueryApi.EditResult'>Auto-generated example JSON</a>

No Additional Properties

Type: string

Optional warning that was emitted when edits were executed.

QueryApi.CellEditsByRow

Type: object

Edits to cell values in a sequence of rows, identified by a raw (possibly filtered) query result row index.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.CellEditsByRow'>Auto-generated example JSON</a>

No Additional Properties

Type: array

One or more blocks or cells that were edited

No Additional Items

Each item of this array must be:

QueryApi.EditBlock

Type: object

A single rectangular block of edits in a table, possibly just a single cell
<a target='_blank' href='../schema-example.json?typeId=QueryApi.EditBlock'>Auto-generated example JSON</a>

No Additional Properties

Type: array of number

0-based index into the results of querying raw data given [filter]. If null, all rows (subject to [filter]) are being edited.

No Additional Items

Each item of this array must be:

Type: array of string

The field names being edited.

No Additional Items

Each item of this array must be:

Type: array of array

The updated cell values by field. This is a 'columnar' structure, indexed as values[fieldOffset][rowOffset]

No Additional Items

Each item of this array must be:

Type: object

The base query against which the edits are made.

QueryApi.FieldEditsAdd

Type: object

Adds/inserts a new field
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FieldEditsAdd'>Auto-generated example JSON</a>

No Additional Properties

Type: string

Name of field to add.

Type: enum (of string) Default: "TEXT"

Data type of field to add. Default is text.

Must be one of:

  • "TEXT"
  • "NUMBER"
  • "DATE"
  • "RANGE_NUMBER"
  • "RANGE_DATE"

Type: string

Field name of optional insert point. You can specify before or after (or neither, to append), never both.

Type: string

Field name of optional insert point. You can specify before or after (or neither, to append), never both.

Type: object

The base query against which the edits are made.

QueryApi.FieldEditsDelete

Type: object

Deletes field(s).
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FieldEditsDelete'>Auto-generated example JSON</a>

No Additional Properties

Type: array of string

The existing field name(s) to delete.

No Additional Items

Each item of this array must be:

Type: object

The base query against which the edits are made.

QueryApi.FieldEditsRename

Type: object

Renames a field.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FieldEditsRename'>Auto-generated example JSON</a>

No Additional Properties

Type: string

The old name (existing field name).

Type: string

The new name (must not exist).

Type: object

The base query against which the edits are made.

QueryApi.FieldEditsReorder

Type: object

Changes the natural order of fields in the table.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FieldEditsReorder'>Auto-generated example JSON</a>

No Additional Properties

Type: array of string

The new order of field names. If any are missing, they will appear after.

No Additional Items

Each item of this array must be:

Type: object

The base query against which the edits are made.

QueryApi.FieldEditsUpdate

Type: object

Updates an existing field (changes type).
<a target='_blank' href='../schema-example.json?typeId=QueryApi.FieldEditsUpdate'>Auto-generated example JSON</a>

No Additional Properties

Type: string

Name of existing field.

Type: enum (of string)

New type of field.

Must be one of:

  • "TEXT"
  • "NUMBER"
  • "DATE"
  • "RANGE_NUMBER"
  • "RANGE_DATE"

Type: string

The format used when converting to dates.

Type: boolean Default: true

Force update, ignoring any conversion warnings.
Example: true

Type: object

The base query against which the edits are made.

QueryApi.RowEditsAdd

Type: object

Adds/inserts new blank row(s)
<a target='_blank' href='../schema-example.json?typeId=QueryApi.RowEditsAdd'>Auto-generated example JSON</a>

No Additional Properties

Type: number Default: 1

The number of rows to add.
Example: 123.45

Type: number

Row index in query of optional insert point. You can specify before or after (or neither, to append), never both.
Example: 123.45

Type: number

Row index in query of optional insert point. You can specify before or after (or neither, to append), never both.
Example: 123.45

Type: object

The base query against which the edits are made.

QueryApi.RowEditsDelete

Type: object

Deletes one or more rows.
<a target='_blank' href='../schema-example.json?typeId=QueryApi.RowEditsDelete'>Auto-generated example JSON</a>

No Additional Properties

Type: array of number

Row indexes in query result to delete. Each item in the list assumes no prior items have yet been deleted.

No Additional Items

Each item of this array must be:

Type: number

Example: 123.45

Type: object

The base query against which the edits are made.