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": "f5274ff9-aaeb-458e-84d9-85f81af50324",
"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": "9210000c-5a74-48cd-bdfc-a5881522672f",
"parentInd": "sample string 10"
},
{
"id": "f5274ff9-aaeb-458e-84d9-85f81af50324",
"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": "9210000c-5a74-48cd-bdfc-a5881522672f",
"parentInd": "sample string 10"
}
],
"updateItems": [
{
"dataSourceId": "248a8810-82cd-47dc-9548-db3c2b559047",
"projectId": "9a79f009-0d65-45f4-b6e6-f1065047e900",
"referenceId": "653dcf6a-b264-414b-a7f4-6b3217af2cc8",
"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": "248a8810-82cd-47dc-9548-db3c2b559047",
"projectId": "9a79f009-0d65-45f4-b6e6-f1065047e900",
"referenceId": "653dcf6a-b264-414b-a7f4-6b3217af2cc8",
"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-09-19T00:03:54.9637341+08:00",
"endDate": "2026-09-19T00:03:54.9637341+08:00",
"periodNumber": 6,
"period": 0,
"dynamicPara": 0,
"periodDimension": 1,
"compare": 0,
"dataType": 0,
"projectId": "3216a249-8275-4814-b1c0-3906d201a328",
"generateRelation": true,
"relationTemplateId": "9ea3a9f4-da19-44b4-9036-38022c307082",
"importSuccessCount": 2,
"importFailedCount": 0,
"account": {
"e10AccountId": "69ffa68f-a69e-41bb-b2e6-e5b266aeaec9",
"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>69ffa68f-a69e-41bb-b2e6-e5b266aeaec9</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-09-19T00:03:54.9637341+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-09-19T00:03:54.9637341+08:00</EndDate>
<GenerateRelation>true</GenerateRelation>
<Name>sample string 1</Name>
<Period>RealTime</Period>
<PeriodDimension>Day</PeriodDimension>
<PeriodNumber>6</PeriodNumber>
<ProjectId>3216a249-8275-4814-b1c0-3906d201a328</ProjectId>
<RelationTemplateId>9ea3a9f4-da19-44b4-9036-38022c307082</RelationTemplateId>
<Targets>
<Indicator>
<Checked>true</Checked>
<Code>sample string 2</Code>
<Connection>sample string 5</Connection>
<DataSourceId>9210000c-5a74-48cd-bdfc-a5881522672f</DataSourceId>
<FailedMessage>sample string 8</FailedMessage>
<Id>f5274ff9-aaeb-458e-84d9-85f81af50324</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>9210000c-5a74-48cd-bdfc-a5881522672f</DataSourceId>
<FailedMessage>sample string 8</FailedMessage>
<Id>f5274ff9-aaeb-458e-84d9-85f81af50324</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>248a8810-82cd-47dc-9548-db3c2b559047</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>9a79f009-0d65-45f4-b6e6-f1065047e900</ProjectId>
<Reference>sample string 2</Reference>
<ReferenceId>653dcf6a-b264-414b-a7f4-6b3217af2cc8</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>248a8810-82cd-47dc-9548-db3c2b559047</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>9a79f009-0d65-45f4-b6e6-f1065047e900</ProjectId>
<Reference>sample string 2</Reference>
<ReferenceId>653dcf6a-b264-414b-a7f4-6b3217af2cc8</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>