---
title: "Updates an absence region."
method: PUT
path: "/absenceregions/{absenceRegionId}"
tags: ["absenceRegions"]
---

# Updates an absence region.

`PUT /absenceregions/{absenceRegionId}`

<Check title="Required Permissions" icon="key">The user must be an admin or have `user-planning-data:write` permissions.</Check>

## Path parameters

- `absenceRegionId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- AbsenceRegionForm
  - `name` string, required — The name of the absence region. Must be unique.
  - `countryCode` string, required — The ISO 3166-1 alpha-2 country code (e.g. 'DE' for Germany).
  - `locationCode` string, nullable — The (optional) location code of the absence region in ISO 3166-2 format (e.g. 'DE-HH' for Hamburg, Germany).
  - `isDefault` boolean — Indicates whether the absence region is the default absence region. A default absence region is automatically assigned to new employees.

## Response `200`

OK

- AbsenceRegionModel
  - `id` string, uuid — The id of the entity.
  - `createdOn` string, date-time — The date this entity was created.
  - `createdBy` string, uuid — The id of the user who created this entity.
  - `updatedOn` string, date-time — The date this entity was last modified.
  - `updatedBy` string, uuid — The id of the user who last modified this entity.
  - `name` string, nullable — The name of the absence region, as specified by the user. It must be unique within the workspace.
  - `countryCode` string, nullable — The country code of the absence region. It must be a valid ISO 3166-1 alpha-2 country code.
  - `country` string, nullable — The english name of the country.
  - `locationCode` string, nullable — The location code of the absence region. It should be a valid ISO 3166-2 country subdivision code.
  - `location` string, nullable — The name of the location. It will always be in the related country's language.
  - `isDefault` boolean — Indicates whether the absence region is the default absence region. Any new user will be assigned to the default absence region.
  - `numberOfPublicHolidays` integer — The number of public holidays in the absence region.
  - `assignedUsers` string[], nullable — The list of user ids assigned to the absence region.

## Other responses

- `400` — Bad Request
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
