---
title: "Create an absence"
method: POST
path: "/v1/absences"
tags: ["Absences"]
---

# Create an absence

`POST /v1/absences`

Create a new absence record for a resource (required scope resources:write)

## Headers

- `Customer-Id` integer, required

## Request body

- CreateAbsenceModel — Create absence request model
  - `resourceId` integer, required — The unique identifier of the resource the absence is for
  - `startAt` string, date-time, required — The date and time the absence starts
  - `endAt` string, date-time, required — The date and time the absence ends. Must be on or after StartAt
  - `absenceTypeId` integer, required — The unique identifier of the absence type. Must reference a valid absence type for this customer
  - `daysRequested` number, double, nullable — The number of days requested for the absence
  - `reason` string, nullable — Free-text reason for the absence
  - `isPaidLeave` boolean, nullable — Whether this absence is paid leave

## Response `201`

Created

- PostResponseInt64 — Represents a response for a POST request, containing the ID of the newly created record
  - `id` integer — Identifier of the newly created record

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `409` — Conflict
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

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