Team: Timeoff
🔒 Получение списка отпусков/больничных и остатка оплачиваемых дней отпуска.
Получение списка отпусков/больничных и остатка оплачиваемых дней отпуска.
Access: authorized (10 ) · Scope: read
Allows: user:timeoff (все обязательны; проверка в команде по ресурсу из запроса)
TypeScript (copy-paste)
GET /team/timeoff/list
<details open><summary><b>Params</b></summary>export interface TeamTimeoffListParams {
userID?: string | null
/** Day key (YYYYMMDD or internal day index) */
daykey?: number | null
}
</details>
<details open><summary><b>Response</b></summary>
export type TeamTimeoffListResponse = IServerResponse<Resp_team_timeoff_list>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
get/team/timeoff/list
Request
- Base URL: http://localhost
- URL: http://localhost/team/timeoff/list
- Auth: one of:
- API key in header sid and API key in header rts and API key in header sig
- HTTP bearer
Query parameters
userIDstring uuid nullable
Можно передать header userID (сервер мержит headers+query)
daykeyinteger nullable
Day key (YYYYMMDD or internal day index)
Можно передать header daykey (сервер мержит headers+query)
Headers
devIDstring uuid required
UUID устройства клиента
tzstring required
Example:Europe/Moscow
Таймзона клиента (IANA или offset)
appstring required
Example:kosmodrom-web
Имя клиентского приложения
appVerstring required
Example:1.0.0
Версия клиента
rKeystring
Уникальный ключ запроса для логов/саппорта
Response
OK — IServerResponse<Resp_team_timeoff_list>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.