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

# POST /absenceType

`POST /absenceType`

## Request

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

create a absenceType

## Query parameters

- `dryRun` boolean

## Request body

- AbsenceType
  - `id` string
  - `version` string
  - `abbreviation` string, required
  - `active` boolean
  - `allowHalfDayRequests` boolean
  - `color` 'CALENDAR_BLUE' | 'CALENDAR_BLUE_GREY' | 'CALENDAR_BROWN' | 'CALENDAR_CYAN' | 'CALENDAR_DEEP_ORANGE' | 'CALENDAR_GLACIER' | 'CALENDAR_GREEN' | 'CALENDAR_GREY' | 'CALENDAR_INDIGO' | 'CALENDAR_LIME' | 'CALENDAR_ORANGE' | 'CALENDAR_PINK' | 'CALENDAR_PURPLE' | 'CALENDAR_RED' | 'CALENDAR_TEAL' | 'CALENDAR_YELLOW' | 'NO_COLOR', required
  - `createdDate` integer
  - `ignoredInResourceUtilization` boolean
  - `lastModifiedDate` integer
  - `name` string, required
  - `reducesLeaveEntitlement` boolean
  - `workTimeTrackingNecessary` boolean

## Response `201`

absenceType create response

- AbsenceType
  - `id` string
  - `version` string
  - `abbreviation` string, required
  - `active` boolean
  - `allowHalfDayRequests` boolean
  - `color` 'CALENDAR_BLUE' | 'CALENDAR_BLUE_GREY' | 'CALENDAR_BROWN' | 'CALENDAR_CYAN' | 'CALENDAR_DEEP_ORANGE' | 'CALENDAR_GLACIER' | 'CALENDAR_GREEN' | 'CALENDAR_GREY' | 'CALENDAR_INDIGO' | 'CALENDAR_LIME' | 'CALENDAR_ORANGE' | 'CALENDAR_PINK' | 'CALENDAR_PURPLE' | 'CALENDAR_RED' | 'CALENDAR_TEAL' | 'CALENDAR_YELLOW' | 'NO_COLOR', required
  - `createdDate` integer
  - `ignoredInResourceUtilization` boolean
  - `lastModifiedDate` integer
  - `name` string, required
  - `reducesLeaveEntitlement` boolean
  - `workTimeTrackingNecessary` boolean

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/absenceType/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)
