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": "78909b39-2410-4092-96ad-3747789e4b2d", "dashboardId": "da637524-de8b-49b2-b0d4-74f9e060c212", "type": "fixed", "isGlobal": true, "name": "sample string 4", "fixed": { "start": 1, "granularity": "day", "end": 2, "endType": "this" }, "accurate": { "start": "2025-04-19T22:51:54.4668264+08:00", "end": "2025-04-19T22:51:54.4668264+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-04-19T22:51:54.4668264+08:00</End> <Start>2025-04-19T22:51:54.4668264+08:00</Start> </Accurate> <AccurateJson>{"Start":"2025-04-19T22:51:54.4668264+08:00","End":"2025-04-19T22:51:54.4668264+08:00"}</AccurateJson> <DashboardId>da637524-de8b-49b2-b0d4-74f9e060c212</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>78909b39-2410-4092-96ad-3747789e4b2d</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>