---
title: "Update a person"
method: PATCH
path: "/v2/people/{person_id}"
tags: ["People"]
---

# Update a person

`PATCH /v2/people/{person_id}`

Updates the roles and group assignments of a workspace member. Omitted fields keep their current values.

## Path parameters

- `person_id` string, required

## Request body

- UpdatePersonRequest
  - `roles` string[] — Replacement role list. Leave empty to clear all roles.
  - `groups` string[] — Replacement group list. Leave empty to clear all groups.
  - `clear_roles` boolean — Explicitly clear all roles. Set to true when sending an empty roles array.
  - `clear_groups` boolean — Explicitly clear all groups. Set to true when sending an empty groups array.

## Response `200`

OK

- UpdatePersonResponse
  - `person` Person, required
    - `id` string, required — Unique workspace user identifier (ULID).
    - `account_id` string, required — Linked account ID.
    - `email` string, required — Email address.
    - `display_name` string, required — Full display name (firstname + lastname).
    - `avatar_url` string — Profile image URL.
    - `roles` string[], required — Permission roles assigned to the person.
    - `groups` string[], required — Group IDs the person belongs to (non-support groups).
    - `status` 'PERSON_STATUS_UNSPECIFIED' | 'PERSON_STATUS_PENDING' | 'PERSON_STATUS_ACTIVE', required
    - `last_activity` string, date-time — Last activity timestamp.
    - `created_at` string, date-time, required — When the person was invited or added.
    - `updated_at` string, date-time, required — Last modification timestamp.

---

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