Team Members

Update Team Member

Changed on

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.

patch/team_members/{id}

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

Team member ID. Accepted members have an ID starting with ausr_ or mber_, and pending invites one starting with ausri_. Treat it as opaque.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Request body

object required
role, 'owner' | 'admin' | 'partner' | 'sales_manager' | 'moderator' | 'advertiser' | 'workforce'

The system role to grant. Custom roles cannot be granted through the API. The Partner role provides view-only access.

Example request

{
  "role": "partner"
}

Response

Team member updated.

TeamMember required
account, AccountParent required

The account this membership belongs to.

authorized_role, TeamMemberAuthorizedRole nullable required
created_at, string required

When the member joined the team or the invite was sent, as an ISO 8601 timestamp. A member who was a customer first keeps the date they were given their role.

direct_reports_count, integer nullable required

How many team members report directly to this member. null for invites.

email, string nullable required

The member's email address. For an invite to an email with no Whop account yet, this is the invited address. Otherwise it is null unless the caller holds the company:authorized_user:email:read scope.

id, string required

Team member ID. Accepted members have an ID starting with ausr_ or mber_, and pending invites one starting with ausri_. Treat it as opaque: both member prefixes are accepted wherever a team member ID is.

is_agent, boolean required

Whether this member is an agent (app-controlled account) rather than a human team member. Always false for invites.

is_partner, boolean required

Whether this member or invite has the view-only Partner role, directly or through a custom role based on it. A Partner can read only the account's basic details.

legal_name, string nullable required

The first and last name on the member's approved identity verification, set only when the member has no profile name. Returned to the account's own API key when listing or retrieving a partner account's team members. null when the member has a profile name or no approved verification, for invites, on write responses, and for other callers.

reports_to_chain, TeamMemberManager[] nullable required
reports_to_id, string nullable required

The ID of the team member this member reports to, starting with ausr_ or mber_; treat it as opaque. null when the member reports to the business directly, and for invites.

role, 'owner' | 'admin' | 'partner' | '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.

team_name, string nullable required

The name of the team this member leads, up to 64 characters. null when the team has no name, and for invites.

updated_at, string required

When the membership was last updated, as an ISO 8601 timestamp.

user, UserSummary nullable required

Example response

{
  "account": {
    "fees": {
      "crypto_swap_markup": {
        "fixed_fee_usd": 0,
        "percentage_fee": 3
      },
      "transfer_markup": {
        "fixed_fee_usd": 0,
        "percentage_fee": 0
      }
    },
    "id": "biz_xxxxxxxxxxxxxx",
    "logo_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "route": "shine-time-holdings",
    "title": "Shine Time Holdings"
  },
  "authorized_role": {
    "id": "aurl_xxxxxxxxxxxxxx",
    "name": "community-moderators"
  },
  "created_at": "2026-01-01T12:00:00.000Z",
  "email": "marcus@shinetime.example",
  "id": "ausr_xxxxxxxxxxxxxx",
  "reports_to_chain": [
    {
      "id": "ausr_xxxxxxxxxxxxxx",
      "user": {
        "badges": [
          {
            "type": "verified_partner"
          }
        ],
        "id": "user_xxxxxxxxxxxxxx",
        "name": "Dana Whitfield",
        "profile_picture": {
          "url": "https://ui-avatars.com/api/"
        },
        "username": "danawhitfield"
      }
    }
  ],
  "reports_to_id": "ausr_xxxxxxxxxxxxxx",
  "role": "admin",
  "status": "joined",
  "updated_at": "2026-01-01T12:00:00.000Z",
  "user": {
    "badges": [
      {
        "type": "verified_partner"
      }
    ],
    "id": "user_xxxxxxxxxxxxxx",
    "name": "Dana Whitfield",
    "profile_picture": {
      "url": "https://ui-avatars.com/api/"
    },
    "username": "danawhitfield"
  }
}

Changes

    • info

      added the required property reports_to_chain/items/team_name to the response with the status

    • info

      added the required property team_name to the response with the status

    • info

      added the required property reports_to_chain/items/user/badges to the response with the status

    1 more change in this revision