CreateAbsenceEntryRequestDto
Backend-источник: feature.managertimetrackerservice/Feature.ManagerTimeTrackerService/Nuget.ManagerTimeTrackerApiClient/Dto/AbsenceEntry/Requests/CreateAbsenceEntryRequestDto.cs (feature.managertimetrackerservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
userId | number | да | — | int |
type | AbsenceTypeDto | да | — | AbsenceTypeDto |
dateFrom | string | да | ISO YYYY-MM-DD | DateOnly |
dateTo | string | да | ISO YYYY-MM-DD | DateOnly |
reason | string | null | нет | — | string? |
attachmentFileUrl | string | null | нет | URL of the AU document returned by FileApiClient on upload (required for SickLeave when settings.RequireAuDocument is on). | string? |
Пример
json
{
"userId": 0,
"type": "<AbsenceTypeDto>",
"dateFrom": "2026-05-05T08:00:00Z",
"dateTo": "2026-05-05T08:00:00Z",
"reason": "string",
"attachmentFileUrl": "https://..."
}