[]
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| documentIdRequired | path | string | document id. For example: b48bb95f-7bb7-c55b-c251-b118e6bee4bb |
Download a model document.
Responses
[200] Success
binary
Type: [application/octet-stream]
[400] Bad Request
Type: [application/json]
[404] Not Found
Type: [application/json]
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| idRequired | path | string | data model id |
| query | query | string | query |
| queryType | query | string | query type |
| format | query | string | format |
| UnknownTypeHandle | query | string | unknown type handle |
| MissParameterHandle | query | string | miss parameter handle |
| RowLimit | query | string | row limit |
Query data model.
Responses
[200] Success
binary
Type: [application/json]
[400] Bad Request
Type: [application/json]
[404] Not Found
Type: [application/json]
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| idRequired | path | string | data model id |
Query data model.
Request Body
Description: query request
Type: application/json
Responses
[200] Success
binary
Type: [application/json]
[400] Bad Request
Type: [application/json]
[404] Not Found
Type: [application/json]
Rebuild the cached model cache.
Request Body
Description: Batch rebuild model
Type: application/json
BatchRebuildModelsRequestViewModelV2
Responses
[200] Success
RebuildModelCacheResponseViewModelV2
Type: [application/json]
[400] Bad Request
Type: [application/json]
Parameters
| Name | In | Type |
|---|---|---|
| documentIdRequired | path | string |
Start a loading data task to reload data according to the table structure in the data source. Triggered by the sync function in the designer.
Request Body
Description: Represents a sync entities request model.
Type: application/json
SyncEntitiesRequestViewModelV2
Responses
[200] Success
Type: [application/json]
[400] Bad Request
Type: [application/json]
[404] Not Found
Type: [application/json]
create an empty data model.
Request Body
Description: Represents a save model request view model.
Type: application/json
CreateEmptyModelRequestViewModelV2
Responses
[200] Success
CreateEmptyModelResponseViewModelV2
Type: [application/json]
[400] Bad Request
Type: [application/json]
Dataset plugin error model
| Name | Type | Description |
|---|---|---|
| codeNullable | string | Error code |
| messageNullable | string | Error message |
| contextNullable | string | Error context |
| innerError | DatasetPluginErrorV2 | |
| extendedResultNullable | any | Extended result |
Query data model request body
| Name | Type | Description |
|---|---|---|
| datasourceParametersNullable | string | Datasource parameters |
| queryNullable | string | Query |
| queryTypeNullable | string | QueryType |
| formatNullable | string | Format |
| options | Options |
| Name | Type | Description |
|---|---|---|
| unknownTypeHandleNullable | string | Unknown type handle |
| missParameterHandleNullable | string | Miss parameter handle |
| rowLimitNullable | string | Row limit |
Represents a rebuild model cache response model.
| Name | Type | Description |
|---|---|---|
| documentIdNullable | string | Document id. |
| succeeded | Boolean | Result of rebuild task. |
| errorCode | int32 | Error code when the rebuild failed. |
| errorMessageNullable | string | Error message when the rebuild failed. |
| modified | ISO DateTime Sting | Rebuild cache data time. |
Analysis model plugin error model
| Name | Type | Description |
|---|---|---|
| codeNullable | string | Error code |
| messageNullable | string | Error message |
| contextNullable | string | Error context |
| innerError | AnalysisModelErrorV2 | |
| extendedResultNullable | any | Extended result |
Represents a batch rebuild model.
| Name | Type | Description | Example |
|---|---|---|---|
| documentIdsRequired | Array<string> |
Document id array | ["5b0a797d-3f47-420e-a34b-37b3fd9ed934","d5b53d25-cb57-43a5-a027-cac17522e785"] |
Represents a sync entities data response model.
| Name | Type | Description |
|---|---|---|
| queryIdNullable | string | Task ID, which can be used to query task progress. |
Represents a sync entities request model.
| Name | Type | Description | Example |
|---|---|---|---|
| lockNoRequired | string | The lock number of the current document. | "0acd06af-2077-4cff-976a-76061a1dd626" |
| dataSourceInfosRequired | Array<DataSourceInfoViewModel> |
A list of data sources for the cached model. | |
| entitiesRequired | Array<EntityViewModel> |
Entities that need to sync. |
Represents a datasource model.
| Name | Type | Description | Example |
|---|---|---|---|
| idRequired | string | Datasource id. | "8b8b1cc9-413c-4ba0-8563-824153dde1e7" |
| typeRequired | ViewModelDataSourceType | ||
| providerRequired | string | Datasource provider. | "Oracle" |
| connectionStringNullable | string | Datasource connection string. | |
| documentIdNullable | string | Referenced data source document ID. | "79590916-839a-4a99-a634-98e7f502c4b9" |
| documentVersionNullable | int32 | Referenced data source document version. |
Represents an entity model.
| Name | Type | Description | Example |
|---|---|---|---|
| idRequired | string | Entity id. | "47732d38-f453-432b-8d3d-b6d4e2227ad" |
| nameRequired | string | Entity name. | "userName" |
| bindingRequired | string | Entity binding. | "[dbo].[User]" |
| bindingTypeRequired | ViewModelEntityBindingType | ||
| attributesRequired | Array<AttributeViewModel> |
Attributes of entity. | |
| isHidden | Boolean | Indicates whether the entity is hidden. | false |
| entityParameterCollection | EntityParameterCollectionViewModel | ||
| dataSourceIdRequired | string | The id of the data source to which the current entity belongs. | "af3c4241-a6b2-4a86-90d0-4eda941856eb" |
| generatedNameNullable | string | Reserved field, not used for now. | |
| isSupportIncrementalUpdate | Boolean | Indicates whether the current entity supports incremental updates. | true |
Enum:
Embedded
Referenced
DataFile
Datasource type.
* Embedded - 0 - Embedded datasource.
* Referenced - 1 - Referenced datasource.
* DataFile - 2 - Data file datasource.
Enum:
DatabaseTable
CustomSQLTable
LocalEntity
ETLTable
DataFlowTable
Entity binding type.
* DatabaseTable - 0 - Database table.
* CustomSQLTable - 1 - Custom sql statement table.
* LocalEntity - 2 - Local entity.
* ETLTable - 3 - ETL table.
* DataFlowTable - 4 - Data Flow table.
Represents an attribute model.
| Name | Type | Description | Example |
|---|---|---|---|
| idRequired | string | Attribute id. | "a9d47ea8-aa33-4af6-943f-548abf0db44e" |
| nameRequired | string | Attribute name. | "userName" |
| bindingRequired | string | Attribute binding. | |
| isNullableRequired | Boolean | Whether the attribute is nullable. | true |
| isUniqueRequired | Boolean | Indicates whether the attribute values are unique. | false |
| bindingTypeRequired | ViewModelAttributeBindingType | ||
| dataTypeRequired | ViewModelAttributeLogicalDataType | ||
| dataVizAIHint | ViewModelDataVizAIHint | ||
| clrDataTypeNameRequired | string | The name of the Common Language Runtime (CLR) data type of the attribute. | "System.String" |
| isHidden | Boolean | Indicates whether the attribute is hidden. | false |
| isDate | Boolean | Indicates whether the attribute is a date. | false |
| generatedNameNullable | string | Reserved field, not used for now. | |
| isContainTimeZoneNullable | Boolean | Indicates whether the attribute value contains a time zone. | false |
| originNameNullable | string | The original name of the attribute. | "name" |
| isUnsupportedNullable | Boolean | Indicates whether the attribute type is unsupported. | false |
| descriptionNullable | string | The column description in the database. |
Represents a collection of parameters of a web json data source entity.
| Name | Type | Description |
|---|---|---|
| entityParametersRequired | Array<EntityParameterViewModel> |
List of entity parameters. |
Enum:
DatabaseTableColumn
PrimitiveSQLExpression
Attribute binding type.
* DatabaseTableColumn - 0 - Database table column
* PrimitiveSQLExpression - 1 - custom sql expression column
Enum:
Number
Text
Boolean
Binary
GUID
Date
DateTime
Unknown
Attribute data type.
* Number - 0 - Number
* Text - 1 - Text
* Boolean - 2 - Boolean
* Binary - 3 - Binary
* GUID - 4 - GUID
* Date - 5 - Date
* DateTime - 6 - Datetime
* Unknown - 7 - Unknown type
Enum:
None
Currency
ImageURL
ImageBinary
GeoRegion
GeoLatitude
GeoLongitude
DataVizAIHint
* None - 0 - None.
* Currency - 1 - Currency.
* ImageURL - 2 - Image URL.
* ImageBinary - 3 - Image binary.
* GeoRegion - 4 - Geo region.
* GeoLatitude - 5 - Geo latitude.
* GeoLongitude - 6 - Geo longitude.
Represents a entity parameter view model.
| Name | Type | Description | Example |
|---|---|---|---|
| parameterNameRequired | string | Parameter name. | "name" |
| literalValueNullable | string | The parameter value displayed as text. | "Bob" |
| valueTypeRequired | ViewModelAttributeLogicalDataType | ||
| isMultivaluedRequired | Boolean | Whether the current parameter is a multivalued parameter. | false |
Represents a save model response view model.
| Name | Type | Description |
|---|---|---|
| newDocumentIdNullable | string | The id of the model document. |
Represents a save model request view model.
| Name | Type | Description | Example |
|---|---|---|---|
| documentTitleRequired | string | The name of the model. | "Demo" |
| modelTypeRequired | ViewModelModelType |
Enum:
DirectQuery
CacheMode
Model type.
* DirectQuery - 0 - Direct query model.
* CacheMode - 1 - Cached model.