---
title: "Update a department"
method: PUT
path: "/departments/{id}"
tags: ["Departments"]
---

# Update a department

`PUT /departments/{id}`

Update a department

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `custom_id` string, nullable
  - `name` string
  - `maximum_absent` integer
  - `approval_process` 'Linear_all_have_to_agree' | 'Linear_one_has_to_agree' | 'Parallel_all_have_to_agree' | 'Parallel_one_has_to_agree'
  - `manager_member` object[]
    - `member_id` string, required
    - `predecessor_manager_id` string, nullable, required
    - `is_hidden` boolean
  - `default_department_allowances` object[], required
    - `id` string, required
    - `value` number, required

## Response `200`

Successful response

- string, uuid

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/absentify/apis/absentify-crud-api.md) · [All operations](https://skmtc.net/absentify/apis/absentify-crud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/absentify/absentify-crud-api/revisions/ef777d51e6f2/schema)
