POST api/data_source/import_indicators
Request Information
URI Parameters
None.
Body Parameters
BaiiDataSourceName | Description | Type | Additional information |
---|---|---|---|
Targets | Collection of Indicator |
None. |
|
UpdateItems | Collection of DataSource |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
Connection | string |
None. |
|
BeginDate | date |
None. |
|
EndDate | date |
None. |
|
PeriodNumber | integer |
None. |
|
Period | PeriodType |
None. |
|
DynamicPara | DynamicParaType |
None. |
|
PeriodDimension | PeriodDimensionType |
None. |
|
Compare | CompareType |
None. |
|
DataType | DataSourceType |
None. |
|
ProjectId | globally unique identifier |
None. |
|
GenerateRelation | boolean |
None. |
|
RelationTemplateId | globally unique identifier |
None. |
|
ImportSuccessCount | integer |
None. |
|
ImportFailedCount | integer |
None. |
|
Account | E10Account |
None. |
|
CacheInterval | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "targets": [ { "id": "362755cc-a488-4b0a-8280-f1aa2d2365af", "code": "sample string 2", "rootText": "sample string 3", "text": "sample string 4", "type": 0, "connection": "sample string 5", "checked": true, "importSuccess": true, "failedMessage": "sample string 8", "dataSourceId": "bd1a82e8-67db-40de-950e-ce0bfb8cce07", "parentInd": "sample string 10" }, { "id": "362755cc-a488-4b0a-8280-f1aa2d2365af", "code": "sample string 2", "rootText": "sample string 3", "text": "sample string 4", "type": 0, "connection": "sample string 5", "checked": true, "importSuccess": true, "failedMessage": "sample string 8", "dataSourceId": "bd1a82e8-67db-40de-950e-ce0bfb8cce07", "parentInd": "sample string 10" } ], "updateItems": [ { "dataSourceId": "15199911-52ff-4340-9a0e-dd0933d60a4a", "projectId": "9146c85d-42c5-46b8-b734-939bfc2353d4", "referenceId": "7d8f258e-9605-447f-aff1-15a00ec24548", "reference": "sample string 2", "name": "sample string 3", "description": "sample string 4", "type": 0, "schema": "sample string 5", "content": "sample string 6", "encodedConnection": "c2FtcGxlIHN0cmluZyA4", "connection": "sample string 8", "period": 0, "dynamicPara": 0, "beginDate": "sample string 9", "endDate": "sample string 10", "periodNumber": 11, "periodDimension": 1, "compare": 0, "isReadOnly": true, "cacheInterval": 1, "tableName": "sample string 13" }, { "dataSourceId": "15199911-52ff-4340-9a0e-dd0933d60a4a", "projectId": "9146c85d-42c5-46b8-b734-939bfc2353d4", "referenceId": "7d8f258e-9605-447f-aff1-15a00ec24548", "reference": "sample string 2", "name": "sample string 3", "description": "sample string 4", "type": 0, "schema": "sample string 5", "content": "sample string 6", "encodedConnection": "c2FtcGxlIHN0cmluZyA4", "connection": "sample string 8", "period": 0, "dynamicPara": 0, "beginDate": "sample string 9", "endDate": "sample string 10", "periodNumber": 11, "periodDimension": 1, "compare": 0, "isReadOnly": true, "cacheInterval": 1, "tableName": "sample string 13" } ], "name": "sample string 1", "description": "sample string 2", "connection": "sample string 3", "beginDate": "2025-09-15T18:50:54.9781444+08:00", "endDate": "2025-09-15T18:50:54.9781444+08:00", "periodNumber": 6, "period": 0, "dynamicPara": 0, "periodDimension": 1, "compare": 0, "dataType": 0, "projectId": "9818e3e1-0ab3-4924-8bce-88794bc5a4f7", "generateRelation": true, "relationTemplateId": "d9cc6da0-f8be-4fe6-8e9e-fd42e6e9c394", "importSuccessCount": 2, "importFailedCount": 0, "account": { "e10AccountId": "911927fd-5aeb-469a-98cd-0dd8878e3c5c", "isPrimary": true, "name": "sample string 3", "ip": "sample string 4", "port": 5, "userName": "sample string 6", "securityIdentity": "c2FtcGxlIHN0cmluZyA4", "identity": "sample string 8" }, "cacheInterval": 1 }
application/xml, text/xml
Sample:
<BaiiDataSource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Core.Data.Entities"> <Account> <E10AccountId>911927fd-5aeb-469a-98cd-0dd8878e3c5c</E10AccountId> <IP>sample string 4</IP> <Identity>sample string 8</Identity> <IsPrimary>true</IsPrimary> <Name>sample string 3</Name> <Port>5</Port> <SecurityIdentity>c2FtcGxlIHN0cmluZyA4</SecurityIdentity> <UserName>sample string 6</UserName> </Account> <BeginDate>2025-09-15T18:50:54.9781444+08:00</BeginDate> <CacheInterval>1</CacheInterval> <Compare>Normal</Compare> <Connection>sample string 3</Connection> <DataType>SQL</DataType> <Description>sample string 2</Description> <DynamicPara>Interval</DynamicPara> <EndDate>2025-09-15T18:50:54.9781444+08:00</EndDate> <GenerateRelation>true</GenerateRelation> <Name>sample string 1</Name> <Period>RealTime</Period> <PeriodDimension>Day</PeriodDimension> <PeriodNumber>6</PeriodNumber> <ProjectId>9818e3e1-0ab3-4924-8bce-88794bc5a4f7</ProjectId> <RelationTemplateId>d9cc6da0-f8be-4fe6-8e9e-fd42e6e9c394</RelationTemplateId> <Targets> <Indicator> <Checked>true</Checked> <Code>sample string 2</Code> <Connection>sample string 5</Connection> <DataSourceId>bd1a82e8-67db-40de-950e-ce0bfb8cce07</DataSourceId> <FailedMessage>sample string 8</FailedMessage> <Id>362755cc-a488-4b0a-8280-f1aa2d2365af</Id> <ImportSuccess>true</ImportSuccess> <ParentInd>sample string 10</ParentInd> <RootText>sample string 3</RootText> <Text>sample string 4</Text> <Type>Root</Type> </Indicator> <Indicator> <Checked>true</Checked> <Code>sample string 2</Code> <Connection>sample string 5</Connection> <DataSourceId>bd1a82e8-67db-40de-950e-ce0bfb8cce07</DataSourceId> <FailedMessage>sample string 8</FailedMessage> <Id>362755cc-a488-4b0a-8280-f1aa2d2365af</Id> <ImportSuccess>true</ImportSuccess> <ParentInd>sample string 10</ParentInd> <RootText>sample string 3</RootText> <Text>sample string 4</Text> <Type>Root</Type> </Indicator> </Targets> <UpdateItems> <DataSource> <BeginDate>sample string 9</BeginDate> <CacheInterval>1</CacheInterval> <Compare>Normal</Compare> <Connection>sample string 8</Connection> <Content>sample string 6</Content> <DataSourceId>15199911-52ff-4340-9a0e-dd0933d60a4a</DataSourceId> <Description>sample string 4</Description> <DynamicPara>Interval</DynamicPara> <EncodedConnection>c2FtcGxlIHN0cmluZyA4</EncodedConnection> <EndDate>sample string 10</EndDate> <IsReadOnly>true</IsReadOnly> <Name>sample string 3</Name> <Period>RealTime</Period> <PeriodDimension>Day</PeriodDimension> <PeriodNumber>11</PeriodNumber> <ProjectId>9146c85d-42c5-46b8-b734-939bfc2353d4</ProjectId> <Reference>sample string 2</Reference> <ReferenceId>7d8f258e-9605-447f-aff1-15a00ec24548</ReferenceId> <Schema>sample string 5</Schema> <TableName>sample string 13</TableName> <Type>SQL</Type> </DataSource> <DataSource> <BeginDate>sample string 9</BeginDate> <CacheInterval>1</CacheInterval> <Compare>Normal</Compare> <Connection>sample string 8</Connection> <Content>sample string 6</Content> <DataSourceId>15199911-52ff-4340-9a0e-dd0933d60a4a</DataSourceId> <Description>sample string 4</Description> <DynamicPara>Interval</DynamicPara> <EncodedConnection>c2FtcGxlIHN0cmluZyA4</EncodedConnection> <EndDate>sample string 10</EndDate> <IsReadOnly>true</IsReadOnly> <Name>sample string 3</Name> <Period>RealTime</Period> <PeriodDimension>Day</PeriodDimension> <PeriodNumber>11</PeriodNumber> <ProjectId>9146c85d-42c5-46b8-b734-939bfc2353d4</ProjectId> <Reference>sample string 2</Reference> <ReferenceId>7d8f258e-9605-447f-aff1-15a00ec24548</ReferenceId> <Schema>sample string 5</Schema> <TableName>sample string 13</TableName> <Type>SQL</Type> </DataSource> </UpdateItems> </BaiiDataSource>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResultName | Description | Type | Additional information |
---|---|---|---|
Status | ApiResultStatus |
None. |
|
Data | Object |
None. |
|
Message | string |
None. |
|
Code | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "status": "success", "data": {}, "message": "sample string 2", "code": 1 }
application/xml, text/xml
Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models"> <Code>1</Code> <Data /> <Message>sample string 2</Message> <Status>Success</Status> </ApiResult>