🔒 Расчёт первого рабочего дня сотрудника после завершения отпуска/больничного.
Расчёт первого рабочего дня сотрудника после завершения отпуска/больничного.
Access: authorized (10 ) · Scope: read
Allows: user:timeoff (все обязательны; ресурс — <тип>ID / ID из запроса, user:* — userID или сам пользователь)
TypeScript (copy-paste)
GET /team/timeoff/start-work-day
<details open><summary><b>Params</b></summary>export interface TeamTimeoffStartWorkDayParams {
userID: string
/** Day key (YYYYMMDD or internal day index) */
startDayKey: number
daysCount: number
type?: team_timeoff_start_work_day_type | null
}
</details>
<details open><summary><b>Response</b></summary>
export type TeamTimeoffStartWorkDayResponse = IServerResponse<Resp_team_timeoff_start-work-day>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
Request
- Base URL: http://localhost
- URL: http://localhost/team/timeoff/start-work-day
- Auth: one of:
- API key in header sid and API key in header rts and API key in header sig
- HTTP bearer
Query parameters
Можно передать header userID (сервер мержит headers+query)
Day key (YYYYMMDD or internal day index)
Можно передать header startDayKey (сервер мержит headers+query)
Можно передать header daysCount (сервер мержит headers+query)
vacation = "vacation", sick = "sick"
Можно передать header type (сервер мержит headers+query)
Headers
UUID устройства клиента
Таймзона клиента (IANA или offset)
Имя клиентского приложения
Версия клиента
Уникальный ключ запроса для логов/саппорта
Response
OK — IServerResponse<Resp_team_timeoff_start-work-day>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.