POST api/data_source/update_e10_projs
Request Information
URI Parameters
None.
Body Parameters
BaiiDataSource| Name | 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": "efc1fa62-eaed-4d4b-977c-f8da17230aa3",
"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": "58930a98-44dd-490f-ae36-d323368e787a",
"parentInd": "sample string 10"
},
{
"id": "efc1fa62-eaed-4d4b-977c-f8da17230aa3",
"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": "58930a98-44dd-490f-ae36-d323368e787a",
"parentInd": "sample string 10"
}
],
"updateItems": [
{
"dataSourceId": "85492c8c-f42a-4945-84af-4722653cf7c5",
"projectId": "21efe3ed-0219-46b8-9472-ac205bba7588",
"referenceId": "eb9cac56-2411-499f-b160-a88fafe9dcb1",
"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": "85492c8c-f42a-4945-84af-4722653cf7c5",
"projectId": "21efe3ed-0219-46b8-9472-ac205bba7588",
"referenceId": "eb9cac56-2411-499f-b160-a88fafe9dcb1",
"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": "2026-03-19T05:55:08.2753703+08:00",
"endDate": "2026-03-19T05:55:08.2753703+08:00",
"periodNumber": 6,
"period": 0,
"dynamicPara": 0,
"periodDimension": 1,
"compare": 0,
"dataType": 0,
"projectId": "47c3ecdc-2be0-411b-b439-acbd3e9b0a25",
"generateRelation": true,
"relationTemplateId": "3b39edad-065b-49c0-951e-759ce4cc81f8",
"importSuccessCount": 2,
"importFailedCount": 0,
"account": {
"e10AccountId": "d972e007-950c-49ed-a60c-26bb8debafa5",
"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>d972e007-950c-49ed-a60c-26bb8debafa5</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>2026-03-19T05:55:08.2753703+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>2026-03-19T05:55:08.2753703+08:00</EndDate>
<GenerateRelation>true</GenerateRelation>
<Name>sample string 1</Name>
<Period>RealTime</Period>
<PeriodDimension>Day</PeriodDimension>
<PeriodNumber>6</PeriodNumber>
<ProjectId>47c3ecdc-2be0-411b-b439-acbd3e9b0a25</ProjectId>
<RelationTemplateId>3b39edad-065b-49c0-951e-759ce4cc81f8</RelationTemplateId>
<Targets>
<Indicator>
<Checked>true</Checked>
<Code>sample string 2</Code>
<Connection>sample string 5</Connection>
<DataSourceId>58930a98-44dd-490f-ae36-d323368e787a</DataSourceId>
<FailedMessage>sample string 8</FailedMessage>
<Id>efc1fa62-eaed-4d4b-977c-f8da17230aa3</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>58930a98-44dd-490f-ae36-d323368e787a</DataSourceId>
<FailedMessage>sample string 8</FailedMessage>
<Id>efc1fa62-eaed-4d4b-977c-f8da17230aa3</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>85492c8c-f42a-4945-84af-4722653cf7c5</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>21efe3ed-0219-46b8-9472-ac205bba7588</ProjectId>
<Reference>sample string 2</Reference>
<ReferenceId>eb9cac56-2411-499f-b160-a88fafe9dcb1</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>85492c8c-f42a-4945-84af-4722653cf7c5</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>21efe3ed-0219-46b8-9472-ac205bba7588</ProjectId>
<Reference>sample string 2</Reference>
<ReferenceId>eb9cac56-2411-499f-b160-a88fafe9dcb1</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
ApiResult| Name | 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>