POST api/adv_date
Request Information
URI Parameters
None.
Body Parameters
DateAdvance| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| DashboardId | globally unique identifier |
None. |
|
| Type | ComputingType |
None. |
|
| IsGlobal | boolean |
None. |
|
| Name | string |
None. |
|
| Fixed | Fixed |
None. |
|
| Accurate | Accurate |
None. |
|
| Relative | Relative |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "04bffd02-d857-4a65-a3f2-142182fc74d9",
"dashboardId": "e8fd9927-09d0-4a71-937b-c8670ca244b7",
"type": "fixed",
"isGlobal": true,
"name": "sample string 4",
"fixed": {
"start": 1,
"granularity": "day",
"end": 2,
"endType": "this"
},
"accurate": {
"start": "2025-11-03T18:23:40.7488719+08:00",
"end": "2025-11-03T18:23:40.7488719+08:00"
},
"relative": {
"granularity": "day",
"month": {
"start": "this",
"end": "today"
},
"quarter": {
"start": "this",
"end": "today"
},
"week": {
"start": "this",
"end": "today"
},
"year": {
"start": "this",
"end": "today"
}
}
}
application/xml, text/xml
Sample:
<DateAdvance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Margin.Core.Data.Entities">
<Accurate>
<End>2025-11-03T18:23:40.7488719+08:00</End>
<Start>2025-11-03T18:23:40.7488719+08:00</Start>
</Accurate>
<AccurateJson>{"Start":"2025-11-03T18:23:40.7488719+08:00","End":"2025-11-03T18:23:40.7488719+08:00"}</AccurateJson>
<DashboardId>e8fd9927-09d0-4a71-937b-c8670ca244b7</DashboardId>
<Fixed>
<End>2</End>
<EndType>This</EndType>
<Granularity>Day</Granularity>
<Start>1</Start>
</Fixed>
<FixedJson>{"Start":1,"Granularity":"day","End":2,"EndType":"this"}</FixedJson>
<Id>04bffd02-d857-4a65-a3f2-142182fc74d9</Id>
<IsGlobal>true</IsGlobal>
<Name>sample string 4</Name>
<Relative>
<Granularity>Day</Granularity>
<Month>
<End>Today</End>
<Start>This</Start>
</Month>
<Quarter>
<End>Today</End>
<Start>This</Start>
</Quarter>
<Week>
<End>Today</End>
<Start>This</Start>
</Week>
<Year>
<End>Today</End>
<Start>This</Start>
</Year>
</Relative>
<RelativeJson>{"Granularity":"day","Month":{"Start":"this","End":"today"},"Quarter":{"Start":"this","End":"today"},"Week":{"Start":"this","End":"today"},"Year":{"Start":"this","End":"today"}}</RelativeJson>
<Type>Fixed</Type>
</DateAdvance>
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>