POST horizon/v1/employees/vacations
Creates a new vacation
Request Information
URI Parameters
None.
Body Parameters
Milenio3.Horizon.Dto.Entities.NewVacationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| Date | date |
None. |
|
| DayPeriod | Milenio3.Horizon.Dto.Entities.DayPeriodType |
None. |
Request Formats
application/json, text/json
Sample:
{
"StartDate": "2026-06-21T01:12:33.1195392+01:00",
"EndDate": "2026-06-21T01:12:33.1195392+01:00",
"Date": "2026-06-21T01:12:33.1195392+01:00",
"DayPeriod": 10
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The created vacation
Collection of Milenio3.Horizon.Dto.Entities.VacationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| DayPeriod | Milenio3.Horizon.Dto.Entities.DayPeriodType |
None. |
|
| Id | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"StartDate": "2026-06-21T01:12:33.1195392+01:00",
"EndDate": "2026-06-21T01:12:33.1195392+01:00",
"DayPeriod": 10,
"Id": 3
},
{
"StartDate": "2026-06-21T01:12:33.1195392+01:00",
"EndDate": "2026-06-21T01:12:33.1195392+01:00",
"DayPeriod": 10,
"Id": 3
}
]