---
title: "Create attendance request [beta]"
method: POST
path: "/attendance-request"
tags: ["[v3] Attendance"]
---

# Create attendance request [beta]

`POST /attendance-request`

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.

## Request body

- object
  - `targetUserId` integer, required — ID of the user for whom the attendance request is created
  - `date` string, date, required — Date in YYYY-MM-DD format
  - `dayTypeId` integer, required — ID of the day type (must exist in the user's root group)
  - `shouldBe` integer, required — Expected time for this day in minutes (e.g., 480 = 8 hours)
  - `vacationHours` integer, required — Time to deduct from vacation limit in minutes
  - `note` string, nullable — Optional note for the request
  - `eraseComputerActivities` boolean — Whether to erase computer activities for this day. Requires allowErasingData setting enabled for the root group.

## Response `201`

Attendance request created successfully

- object
  - `id` integer — ID of the created request
  - `user_id` integer — ID of the user
  - `date` string, date — Date of the request
  - `day_type_id` integer — ID of the day type
  - `status` 'pending' | 'approved' | 'rejected' — Status of the request
  - `time` integer — Expected time in minutes
  - `vacation_time` integer — Vacation time in minutes
  - `note` string — Request note
  - `erase_computer_activities` boolean — Whether computer activities should be erased. Only included in response if allowErasingData setting is enabled for the root group.
  - `processed_by` integer, nullable — ID of the user who processed the request (null if pending)

## Other responses

- `400` — Bad request - validation error
- `401` — Unauthorized - user not authenticated
- `403` — Forbidden - user does not have permission to create this request
- `500` — Internal server error

---

[API](https://skmtc.net/timecamp/apis/timecamp-api.md) · [All operations](https://skmtc.net/timecamp/apis/timecamp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timecamp/timecamp-api/revisions/c7e9d1f9cf61/schema)
