POST api/adv_date
Request Information
URI Parameters
None.
Body Parameters
DateAdvanceName | 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": "b5281db5-e149-47de-99e4-29c7f8a49708", "dashboardId": "967d5b6d-0777-449f-9220-5c49bdd743f4", "type": "fixed", "isGlobal": true, "name": "sample string 4", "fixed": { "start": 1, "granularity": "day", "end": 2, "endType": "this" }, "accurate": { "start": "2025-07-16T04:41:52.0144303+08:00", "end": "2025-07-16T04:41:52.0144303+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-07-16T04:41:52.0144303+08:00</End> <Start>2025-07-16T04:41:52.0144303+08:00</Start> </Accurate> <AccurateJson>{"Start":"2025-07-16T04:41:52.0144303+08:00","End":"2025-07-16T04:41:52.0144303+08:00"}</AccurateJson> <DashboardId>967d5b6d-0777-449f-9220-5c49bdd743f4</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>b5281db5-e149-47de-99e4-29c7f8a49708</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
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>