POST api/data_source/merge
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": "1365bbd7-2c5c-4b7d-b995-fd19df8602a3", "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": "32e23aa7-947b-43e8-b534-b964fc4cf6b2", "parentInd": "sample string 10" }, { "id": "1365bbd7-2c5c-4b7d-b995-fd19df8602a3", "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": "32e23aa7-947b-43e8-b534-b964fc4cf6b2", "parentInd": "sample string 10" } ], "updateItems": [ { "dataSourceId": "17033585-b1e9-42bc-b396-c430cfc6e1ec", "projectId": "7b0355e7-62c6-4add-949e-0f79f3d629d6", "referenceId": "9029edbd-74ed-4a46-b02a-176aecd745b0", "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": "17033585-b1e9-42bc-b396-c430cfc6e1ec", "projectId": "7b0355e7-62c6-4add-949e-0f79f3d629d6", "referenceId": "9029edbd-74ed-4a46-b02a-176aecd745b0", "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:59.6509402+08:00", "endDate": "2025-09-15T18:50:59.6509402+08:00", "periodNumber": 6, "period": 0, "dynamicPara": 0, "periodDimension": 1, "compare": 0, "dataType": 0, "projectId": "5d11d20e-f8bc-4055-a76d-675e01776c9c", "generateRelation": true, "relationTemplateId": "7a6d7ea8-e998-447f-9ff4-e09f163aadbf", "importSuccessCount": 2, "importFailedCount": 0, "account": { "e10AccountId": "d83dcf6d-94d7-495f-8755-8aa67ea011b3", "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>d83dcf6d-94d7-495f-8755-8aa67ea011b3</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:59.6509402+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:59.6509402+08:00</EndDate> <GenerateRelation>true</GenerateRelation> <Name>sample string 1</Name> <Period>RealTime</Period> <PeriodDimension>Day</PeriodDimension> <PeriodNumber>6</PeriodNumber> <ProjectId>5d11d20e-f8bc-4055-a76d-675e01776c9c</ProjectId> <RelationTemplateId>7a6d7ea8-e998-447f-9ff4-e09f163aadbf</RelationTemplateId> <Targets> <Indicator> <Checked>true</Checked> <Code>sample string 2</Code> <Connection>sample string 5</Connection> <DataSourceId>32e23aa7-947b-43e8-b534-b964fc4cf6b2</DataSourceId> <FailedMessage>sample string 8</FailedMessage> <Id>1365bbd7-2c5c-4b7d-b995-fd19df8602a3</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>32e23aa7-947b-43e8-b534-b964fc4cf6b2</DataSourceId> <FailedMessage>sample string 8</FailedMessage> <Id>1365bbd7-2c5c-4b7d-b995-fd19df8602a3</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>17033585-b1e9-42bc-b396-c430cfc6e1ec</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>7b0355e7-62c6-4add-949e-0f79f3d629d6</ProjectId> <Reference>sample string 2</Reference> <ReferenceId>9029edbd-74ed-4a46-b02a-176aecd745b0</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>17033585-b1e9-42bc-b396-c430cfc6e1ec</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>7b0355e7-62c6-4add-949e-0f79f3d629d6</ProjectId> <Reference>sample string 2</Reference> <ReferenceId>9029edbd-74ed-4a46-b02a-176aecd745b0</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>