POST api/data_source/update_e10_projs
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": "c1fc765a-0f1e-4b2f-8cd8-7d1eedb82433", "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": "4d1fb0f7-ea6d-4c58-8b55-94fed2d0a864", "parentInd": "sample string 10" }, { "id": "c1fc765a-0f1e-4b2f-8cd8-7d1eedb82433", "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": "4d1fb0f7-ea6d-4c58-8b55-94fed2d0a864", "parentInd": "sample string 10" } ], "updateItems": [ { "dataSourceId": "3725380f-5840-475b-83e3-25f6efe68069", "projectId": "0bdae0a3-2ec3-48b3-b1c0-75b57aa33758", "referenceId": "ff0f85f0-03c8-45d4-a91a-f4f1ba39d872", "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": "3725380f-5840-475b-83e3-25f6efe68069", "projectId": "0bdae0a3-2ec3-48b3-b1c0-75b57aa33758", "referenceId": "ff0f85f0-03c8-45d4-a91a-f4f1ba39d872", "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": "f571cb40-769d-4e8c-b7e4-8318b1fa7b91", "generateRelation": true, "relationTemplateId": "6e377cfd-342c-4232-baa5-b442163d5aaf", "importSuccessCount": 2, "importFailedCount": 0, "account": { "e10AccountId": "b83dbeb3-197a-45c1-b191-650a0590d0b8", "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>b83dbeb3-197a-45c1-b191-650a0590d0b8</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>f571cb40-769d-4e8c-b7e4-8318b1fa7b91</ProjectId> <RelationTemplateId>6e377cfd-342c-4232-baa5-b442163d5aaf</RelationTemplateId> <Targets> <Indicator> <Checked>true</Checked> <Code>sample string 2</Code> <Connection>sample string 5</Connection> <DataSourceId>4d1fb0f7-ea6d-4c58-8b55-94fed2d0a864</DataSourceId> <FailedMessage>sample string 8</FailedMessage> <Id>c1fc765a-0f1e-4b2f-8cd8-7d1eedb82433</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>4d1fb0f7-ea6d-4c58-8b55-94fed2d0a864</DataSourceId> <FailedMessage>sample string 8</FailedMessage> <Id>c1fc765a-0f1e-4b2f-8cd8-7d1eedb82433</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>3725380f-5840-475b-83e3-25f6efe68069</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>0bdae0a3-2ec3-48b3-b1c0-75b57aa33758</ProjectId> <Reference>sample string 2</Reference> <ReferenceId>ff0f85f0-03c8-45d4-a91a-f4f1ba39d872</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>3725380f-5840-475b-83e3-25f6efe68069</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>0bdae0a3-2ec3-48b3-b1c0-75b57aa33758</ProjectId> <Reference>sample string 2</Reference> <ReferenceId>ff0f85f0-03c8-45d4-a91a-f4f1ba39d872</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>