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

# PATCH /v1/departments/{department_id}/members/{person_id}

`PATCH /v1/departments/{department_id}/members/{person_id}`

## Request

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

PATCH /v1/departments/{department_id}/members/{person_id}

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

## Path parameters

- `department_id` string, required
- `person_id` string, required

## Headers

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

## Request body

- object
  - `role` 'lead', required

## Response `200`

Success

- DepartmentMember: Canonical Department member view.
  - `id` string, required: Display id, e.g. `dpm_<base32>`
  - `object` 'department_member', required
  - `department_id` string, required: Display id, e.g. `dpt_<base32>`
  - `person_id` string, nullable, required: Display id, e.g. `per_<base32>`
  - `role` string, required
  - `email` string, nullable, required
  - `name` string, nullable, required
  - `avatar_url` string, nullable, required
  - `joined_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/bef1d2eaaaa1?raw)
