---
title: "Assign/remove current user to/from an absence region."
method: POST
path: "/absenceregions/me/assign"
tags: ["absenceRegions"]
---

# Assign/remove current user to/from an absence region.

`POST /absenceregions/me/assign`

Assigns or removes the current user to/from an absence region.
            A user can be assigned to only one absence region.
            If a user is already assigned to an absence region, they will be removed from the previous one and assigned to the new one.
            Providing a null region id will remove the user from any absence region.

<Check title="Required Permissions" icon="key">The user must be an admin or have `user-planning-data:write` permissions.</Check>

## Headers

- `Authorization` string, required

## Request body

- AssignUserToAbsenceRegionForm
  - `regionId` string, uuid, nullable — The id of the region to assign the users to. If null, removes the user from any absence region.

## Response `204`

No Content

- object

## 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)
