---
title: "PATCH /v1/departments/{department_id}"
method: PATCH
path: "/v1/departments/{department_id}"
tags: ["Departments"]
---

# PATCH /v1/departments/{department_id}

`PATCH /v1/departments/{department_id}`

## Request

- Base URL: `https://api.yardstick.team`
- URL: `https://api.yardstick.team/v1/departments/{department_id}`
- Auth: HTTP bearer

PATCH /v1/departments/{department_id}

**Required scopes:** `departments:write`

## Path parameters

- `department_id` string, required

## Headers

- `Idempotency-Key` string
- `X-Request-Id` string

## Request body

- object
  - `name` string
  - `description` string, nullable
  - `slug` string

## Response `200`

Success

- Department: Canonical Department resource backed by an internal Group.
  - `id` string, required: Display id, e.g. `dpt_<base32>`
  - `object` 'department', required
  - `organization_id` string, required: Display id, e.g. `org_<base32>`
  - `name` string, required
  - `slug` string, required
  - `description` string, nullable, required
  - `created_at` string, nullable, required: ISO-8601 UTC
  - `updated_at` string, nullable, required: ISO-8601 UTC

## Other responses

- `400`: Invalid request
- `401`: Authentication failure
- `403`: Permission denied (scope or feature flag)
- `404`: Resource not found. The error uses the resource-specific code and param names the exact body field or path parameter that referenced it.
- `409`: Conflict (e.g. idempotency key reuse with different body)
- `429`: Rate limited
- `500`: Internal error

---

[API](https://skmtc.dev/yardstick/apis/yardstick-public-api.md) · [All operations](https://skmtc.dev/yardstick/apis/yardstick-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yardstick/apis/yardstick-public-api/revisions/35b5a6e88b35?raw)
