---
title: "Update Team Member"
method: PATCH
path: "/team_members/{id}"
tags: ["Team Members"]
---

# Update Team Member

`PATCH /team_members/{id}`

Changes a team member's system role. Requires a user session — account API keys cannot change member roles. The account owner's role cannot be changed, and you cannot change your own role.

## Request body

- object
  - `role` 'owner' | 'admin' | 'sales_manager' | 'moderator' | 'advertiser' | 'workforce', required — The system role to grant.

## Response `200`

Team member updated.

- TeamMember
  - `account_id` string, required — The account this membership belongs to, prefixed `biz_`.
  - `authorized_role` TeamMemberAuthorizedRole, required
    - `id` string, required — Custom role ID, prefixed `aurl_`.
    - `name` string, required — Custom role name.
  - `created_at` string, required — When the member joined or the invite was sent, as an ISO 8601 timestamp.
  - `email` string, nullable, required — The member's email address. For accepted members, `null` unless the caller holds the email read scope; for invites, the invited address.
  - `id` string, required — Team member ID — `ausr_` for accepted members, `ausri_` for pending invites.
  - `is_agent` boolean, required — Whether this member is an agent (app-controlled account) rather than a human team member. Always `false` for invites.
  - `role` 'owner' | 'admin' | 'sales_manager' | 'moderator' | 'advertiser' | 'app_manager' | 'support' | 'manager' | 'workforce' | 'custom', required — The member's role on the account. `custom` means a bespoke dashboard-managed role; the API can read but not grant it.
  - `status` 'joined' | 'pending', required — `joined` for accepted members, `pending` while the invite is pending.
  - `updated_at` string, required — When the membership was last updated, as an ISO 8601 timestamp.
  - `user` UserSummary, required
    - `id` string, required — User ID, prefixed `user_`.
    - `name` string, nullable, required — Display name.
    - `profile_picture` UserProfilePicture, required
      - `url` string, required — Avatar image URL. Always present — a generated placeholder when the user set no picture.
    - `username` string, required — Public username.

## Other responses

- `400` — Invalid Parameters
- `404` — Resource not found

## Changes

- **2026-08-18** `f67a043e3190` — 1 info
  - added the required property `authorized_role` to the response with the `200` status
- **2026-08-13** `48408451a1f0` — 1 info
  - added the new `workforce` enum value to the request property `role`
- **2026-08-12** `ae20b30817de` — 1 warning
  - added the new `workforce` enum value to the `role` response property for the response status `200`
- **2026-08-07** `f1020c3ecda4` — 2 info
  - added the optional property `error/code` to the response with the `400` status
  - added the optional property `error/code` to the response with the `404` status
- **2026-07-26** `60bbb4a6ffbc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/whop/apis/whop-api/changes/team_members/:id/patch.md)

---

[API](https://skmtc.dev/whop/apis/whop-api.md) · [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/whop/whop-api/revisions/9e320991dd2f/schema)
