POST api/Holiday
Post to upload holidays related to Energy Companies
Request Information
URI Parameters
None.
Body Parameters
Collection of HolidayDataName | Description | Type | Additional information |
---|---|---|---|
EnergyCode | string |
None. |
|
EnergyDescription | string |
None. |
|
DateOfHoliday | date |
None. |
|
HolidayDescription | string |
None. |
Request Formats
application/json, text/json
Sample:
[ { "EnergyCode": "sample string 1", "EnergyDescription": "sample string 2", "DateOfHoliday": "2025-01-28T15:45:40.6606826-08:00", "HolidayDescription": "sample string 4" }, { "EnergyCode": "sample string 1", "EnergyDescription": "sample string 2", "DateOfHoliday": "2025-01-28T15:45:40.6606826-08:00", "HolidayDescription": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfHolidayData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MIDAS_Api.Models"> <HolidayData> <DateOfHoliday>2025-01-28T15:45:40.6606826-08:00</DateOfHoliday> <EnergyCode>sample string 1</EnergyCode> <EnergyDescription>sample string 2</EnergyDescription> <HolidayDescription>sample string 4</HolidayDescription> </HolidayData> <HolidayData> <DateOfHoliday>2025-01-28T15:45:40.6606826-08:00</DateOfHoliday> <EnergyCode>sample string 1</EnergyCode> <EnergyDescription>sample string 2</EnergyDescription> <HolidayDescription>sample string 4</HolidayDescription> </HolidayData> </ArrayOfHolidayData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |