Skip to main content
POST
BatchGetSemanticModels

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
entityIds
string[]

Opaque ids of the entities to read. Get an id from another response, or resolve an identifier with synq.entities.resolve.v1.IdentifierResolveService first.

Required array length: 1 - 100 elements
Required string length: 1 - 1024
fieldNames
string[]

Return only the fields with these names: Field.name. Empty returns every field. A group with no field left is left out. Use it to read single fields of a large model. Ignored for SEMANTIC_MODEL_FORMAT_OSI, which always returns the whole model.

Maximum array length: 1000
Required string length: 1 - 1024
format
enum<string>

The form of the model in the response. SEMANTIC_MODEL_FORMAT_OSI returns the whole model as one document when the parts ask for the fields. It has no readings, no declaration text and no definition findings, and it ignores the field options.

Available options:
SEMANTIC_MODEL_FORMAT_UNSPECIFIED,
SEMANTIC_MODEL_FORMAT_OSI
parts
enum<string>[]

The parts of each model to return. The summary is always returned, so a request with no part returns the summary only.

Maximum array length: 16

SemanticModelPart is one part of a semantic model that a read returns.

Available options:
SEMANTIC_MODEL_PART_UNSPECIFIED,
SEMANTIC_MODEL_PART_SUMMARY,
SEMANTIC_MODEL_PART_FIELDS,
SEMANTIC_MODEL_PART_DEFINITIONS,
SEMANTIC_MODEL_PART_READINGS,
SEMANTIC_MODEL_PART_DECLARATION_TEXT,
SEMANTIC_MODEL_PART_DEFINITION_CHECKS,
SEMANTIC_MODEL_PART_MARKS
tables
string[]

Return only the fields of these tables: Table.name. Empty returns the fields of every table. Use it to read one table of a large model. Ignored for SEMANTIC_MODEL_FORMAT_OSI.

Maximum array length: 100
Maximum string length: 1024
groupKinds
enum<string>[]

Return only the fields of groups of these kinds. Empty returns the fields of every kind. Ignored for SEMANTIC_MODEL_FORMAT_OSI.

Maximum array length: 16

FieldGroupKind is the role the fields of a group play. It is the role of each of its fields.

Available options:
FIELD_GROUP_KIND_UNSPECIFIED,
FIELD_GROUP_KIND_COLUMNS,
FIELD_GROUP_KIND_DIMENSIONS,
FIELD_GROUP_KIND_MEASURES,
FIELD_GROUP_KIND_METRICS,
FIELD_GROUP_KIND_ENTITIES,
FIELD_GROUP_KIND_FACTS,
FIELD_GROUP_KIND_FILTERS,
FIELD_GROUP_KIND_PARAMETERS
fieldLimit
integer

The largest number of fields to return for each group, the first fields in the declarer's order. Zero returns every field. FieldGroup.field_count has the number of all fields of the group. Ignored for SEMANTIC_MODEL_FORMAT_OSI.

Required range: x <= 100000

Response

200 - application/json

Success

semanticModels
SemanticModelEntry · object[]

One entry for each identity group of the request, in the order of its first asked id.

SemanticModelEntry is the answer for one identity group of the request.