Skip to main content
PATCH
TypeScript

Yetkilendirmeler

Authorization
string
header
gerekli

Only available to a signed-in whop.com session. API keys, access tokens, and OAuth tokens are not accepted.

Scopes

authorized_user:update

Başlıklar

Api-Version-Date
string

Pins the request to a dated API version.

Örnek:

"2026-11-17"

Yol Parametreleri

id
string
gerekli

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

Gövde

application/json
role
enum<string>

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

Mevcut seçenekler:
owner,
admin,
partner,
sales_manager,
moderator,
advertiser,
workforce
Örnek:

"partner"

Yanıt

Team member updated.

account
object
gerekli

The account this membership belongs to.

authorized_role
object | null
gerekli

Custom role assigned to this member, or null when the member has a system role.

created_at
string
gerekli

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.

Örnek:

"2026-01-01T12:00:00.000Z"

direct_reports_count
integer | null
gerekli

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

Örnek:

0

email
string | null
gerekli

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.

Örnek:

"marcus@shinetime.example"

id
string
gerekli

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.

Örnek:

"ausr_xxxxxxxxxxxxxx"

is_agent
boolean
gerekli

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

Örnek:

false

is_partner
boolean
gerekli

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.

Örnek:

false

reports_to_chain
object[] | null
gerekli
reports_to_id
string | null
gerekli

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.

Örnek:

"ausr_xxxxxxxxxxxxxx"

role
enum<string>
gerekli

The member's role on the account. custom means a bespoke dashboard-managed role; the API can read but not grant it.

Mevcut seçenekler:
owner,
admin,
partner,
sales_manager,
moderator,
advertiser,
app_manager,
support,
manager,
workforce,
custom
Örnek:

"admin"

status
enum<string>
gerekli

joined for accepted members, pending while the invite is pending.

Mevcut seçenekler:
joined,
pending
Örnek:

"joined"

updated_at
string
gerekli

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

Örnek:

"2026-01-01T12:00:00.000Z"

user
object | null
gerekli

The user behind this team membership. null for an invite sent to an email with no Whop account yet.