v1

latestOpenAPI 3.0.02026-08-061478520.6 KB
[v3] Attendance

Create attendance request [beta]

Creates an attendance request for a specified user and date. The request can be created by the user themselves or by an administrator/supervisor for another user. Depending on permissions and day type settings, the request may be auto-approved or require manual approval. Note: This is a beta version.

post/attendance-request

Request body

targetUserIdinteger required

ID of the user for whom the attendance request is created

datestring date required

Date in YYYY-MM-DD format

dayTypeIdinteger required

ID of the day type (must exist in the user's root group)

shouldBeinteger required

Expected time for this day in minutes (e.g., 480 = 8 hours)

vacationHoursinteger required

Time to deduct from vacation limit in minutes

notestring nullable

Optional note for the request

eraseComputerActivitiesboolean

Whether to erase computer activities for this day. Requires allowErasingData setting enabled for the root group.

Example request

{
  "targetUserId": 123,
  "date": "2026-03-20",
  "dayTypeId": 5,
  "shouldBe": 480,
  "note": "Vacation request"
}

Response

Attendance request created successfully

idinteger

ID of the created request

user_idinteger

ID of the user

datestring date

Date of the request

day_type_idinteger

ID of the day type

status'pending' | 'approved' | 'rejected'

Status of the request

timeinteger

Expected time in minutes

vacation_timeinteger

Vacation time in minutes

notestring

Request note

erase_computer_activitiesboolean

Whether computer activities should be erased. Only included in response if allowErasingData setting is enabled for the root group.

processed_byinteger nullable

ID of the user who processed the request (null if pending)