POST api/admin/v1/Holidays

Create a new Holiday

Request Information

URI Parameters

None

Body Parameters

New Holiday informations

HolidayEditDto
NameDescriptionTypeAdditional information
Day

Date

date

None

Code

The short code of the element

string

None

Description

The description of the element

string

None

IsActive

True if the element is active, false otherwise

boolean

None

Id

Unique ID

integer

None

Request Formats

application/json, text/json

Sample:
{
  "Day": "2024-11-01T19:36:51.8019439+01:00",
  "Code": "sample string 2",
  "Description": "sample string 3",
  "IsActive": true,
  "Id": 5
}

application/xml, text/xml

Sample:
<HolidayEditDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models">
  <Id>5</Id>
  <Code>sample string 2</Code>
  <Description>sample string 3</Description>
  <IsActive>true</IsActive>
  <Day>2024-11-01T19:36:51.8019439+01:00</Day>
</HolidayEditDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

200

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None

Content

HttpContent

None

StatusCode

HttpStatusCode

None

ReasonPhrase

string

None

Headers

Collection of Object

None

RequestMessage

HttpRequestMessage

None

IsSuccessStatusCode

boolean

None