POST horizon/v1/manager/absences

Creates a new absence

Request Information

URI Parameters

None.

Body Parameters

Milenio3.Horizon.Dto.Entities.NewAbsenceDto
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

Type

Milenio3.Horizon.Dto.Entities.AbsenceTypeDto

None.

AbsenceCategoryId

integer

None.

StartDate

date

None.

EndDate

date

None.

StartTime

integer

None.

EndTime

integer

None.

Remarks

string

None.

Document

Milenio3.Horizon.Core.Entities.Common.Document

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "Type": 10,
  "AbsenceCategoryId": 2,
  "StartDate": "2026-06-21T01:07:47.8797006+01:00",
  "EndDate": "2026-06-21T01:07:47.8797006+01:00",
  "StartTime": 5,
  "EndTime": 6,
  "Remarks": "sample string 7",
  "Document": {
    "RowData": "QEA=",
    "Id": 1
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The created absence

Milenio3.Horizon.Dto.Entities.Manager.AbsenceDto
NameDescriptionTypeAdditional information
Type

Milenio3.Horizon.Dto.Entities.AbsenceTypeDto

None.

EmployeeId

integer

None.

Employee

Milenio3.Horizon.Dto.Entities.Manager.EmployeeDto

None.

AbsenceCategoryId

integer

None.

AbsenceCategoryName

string

None.

AbsenceCategoryDescription

string

None.

StartDate

date

None.

EndDate

date

None.

StartTime

integer

None.

EndTime

integer

None.

Remarks

string

None.

AuthorizationState

Milenio3.Horizon.Dto.Entities.Common.AuthorizationStateType

None.

Document

Milenio3.Horizon.Core.Entities.Common.Document

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Type": 10,
  "EmployeeId": 1,
  "Employee": {
    "CompanyCode": 1,
    "FullName": "sample string 2",
    "DisplayName": "sample string 3",
    "Photo": "sample string 4",
    "Id": 5
  },
  "AbsenceCategoryId": 2,
  "AbsenceCategoryName": "sample string 3",
  "AbsenceCategoryDescription": "sample string 4",
  "StartDate": "2026-06-21T01:07:47.8797006+01:00",
  "EndDate": "2026-06-21T01:07:47.8797006+01:00",
  "StartTime": 7,
  "EndTime": 8,
  "Remarks": "sample string 9",
  "AuthorizationState": 10,
  "Document": {
    "RowData": "QEA=",
    "Id": 1
  },
  "Id": 10
}