---
title: "POST /attendance"
method: POST
path: "/attendance"
tags: ["attendance"]
---

# POST /attendance

`POST /attendance`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/attendance`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/attendance/post.ts> (a function with typed inputs; its response is checked against the schema)

create a attendance

## Query parameters

- `dryRun` boolean

## Request body

- Attendance
  - `id` string
  - `version` string
  - `breaks` AttendanceBreak[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `endDate` integer
    - `lastModifiedDate` integer
    - `startDate` integer, required
  - `createdDate` integer
  - `employeeId` string, required
  - `endTime` integer
  - `lastModifiedDate` integer
  - `startTime` integer, required

## Response `201`

attendance create response

- Attendance
  - `id` string
  - `version` string
  - `breaks` AttendanceBreak[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `endDate` integer
    - `lastModifiedDate` integer
    - `startDate` integer, required
  - `createdDate` integer
  - `employeeId` string, required
  - `endTime` integer
  - `lastModifiedDate` integer
  - `startTime` integer, required

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`
- **2022-12-03** `cc274ef79dfd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/attendance/post.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
