POST api/data_source/preview_e10_report_data
Request Information
URI Parameters
None.
Body Parameters
ReportDataSourceName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Description | string |
None. |
|
ProjectId | globally unique identifier |
None. |
|
ProgramId | string |
None. |
|
ConditionProjectId | string |
None. |
|
PeriodNumber | integer |
None. |
|
Status | string |
None. |
|
PeriodDimension | PeriodDimensionType |
None. |
|
DateConditionField | string |
None. |
|
BeginDate | date |
None. |
|
EndDate | date |
None. |
|
CacheInterval | integer |
None. |
|
Account | E10Account |
None. |
Request Formats
application/json
Sample:
{ "name": "sample string 1", "description": "sample string 2", "projectId": "4f9b1261-17d1-4781-824e-419493379333", "programId": "sample string 4", "conditionProjectId": "sample string 5", "periodNumber": 6, "status": "sample string 7", "periodDimension": 1, "dateConditionField": "sample string 8", "beginDate": "2025-04-13T23:43:16.4562796+08:00", "endDate": "2025-04-19T23:43:16.4562796+08:00", "cacheInterval": 1, "account": { "e10AccountId": "949b7781-cf32-44ec-a3f6-51ea81338bbe", "isPrimary": true, "name": "sample string 3", "ip": "sample string 4", "port": 5, "userName": "sample string 6", "securityIdentity": "c2FtcGxlIHN0cmluZyA4", "identity": "sample string 8" } }
text/json
Sample:
{ "name": "sample string 1", "description": "sample string 2", "projectId": "4f9b1261-17d1-4781-824e-419493379333", "programId": "sample string 4", "conditionProjectId": "sample string 5", "periodNumber": 6, "status": "sample string 7", "periodDimension": 1, "dateConditionField": "sample string 8", "beginDate": "2025-04-13T23:43:16.4572803+08:00", "endDate": "2025-04-19T23:43:16.4572803+08:00", "cacheInterval": 1, "account": { "e10AccountId": "949b7781-cf32-44ec-a3f6-51ea81338bbe", "isPrimary": true, "name": "sample string 3", "ip": "sample string 4", "port": 5, "userName": "sample string 6", "securityIdentity": "c2FtcGxlIHN0cmluZyA4", "identity": "sample string 8" } }
application/xml, text/xml
Sample:
<ReportDataSource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Models"> <Account xmlns:d2p1="http://schemas.datacontract.org/2004/07/Margin.Core.Data.Entities"> <d2p1:E10AccountId>949b7781-cf32-44ec-a3f6-51ea81338bbe</d2p1:E10AccountId> <d2p1:IP>sample string 4</d2p1:IP> <d2p1:Identity>sample string 8</d2p1:Identity> <d2p1:IsPrimary>true</d2p1:IsPrimary> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Port>5</d2p1:Port> <d2p1:SecurityIdentity>c2FtcGxlIHN0cmluZyA4</d2p1:SecurityIdentity> <d2p1:UserName>sample string 6</d2p1:UserName> </Account> <CacheInterval>1</CacheInterval> <ConditionProjectId>sample string 5</ConditionProjectId> <DateConditionField>sample string 8</DateConditionField> <Description>sample string 2</Description> <Name>sample string 1</Name> <PeriodDimension>Day</PeriodDimension> <PeriodNumber>6</PeriodNumber> <ProgramId>sample string 4</ProgramId> <ProjectId>4f9b1261-17d1-4781-824e-419493379333</ProjectId> <Status>sample string 7</Status> </ReportDataSource>
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>