Skip to main content
PATCH
TypeScript

인증

Authorization
string
header
필수

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

Scopes

authorized_user:update

헤더

Api-Version-Date
string

Pins the request to a dated API version.

예시:

"2026-11-17"

경로 매개변수

id
string
필수

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

본문

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.

사용 가능한 옵션:
owner,
admin,
partner,
sales_manager,
moderator,
advertiser,
workforce
예시:

"partner"

응답

Team member updated.

account
object
필수

The account this membership belongs to.

authorized_role
object | null
필수

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

created_at
string
필수

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.

예시:

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

direct_reports_count
integer | null
필수

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

예시:

0

email
string | null
필수

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.

예시:

"marcus@shinetime.example"

id
string
필수

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.

예시:

"ausr_xxxxxxxxxxxxxx"

is_agent
boolean
필수

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

예시:

false

is_partner
boolean
필수

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.

예시:

false

reports_to_chain
object[] | null
필수
reports_to_id
string | null
필수

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.

예시:

"ausr_xxxxxxxxxxxxxx"

role
enum<string>
필수

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

사용 가능한 옵션:
owner,
admin,
partner,
sales_manager,
moderator,
advertiser,
app_manager,
support,
manager,
workforce,
custom
예시:

"admin"

status
enum<string>
필수

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

사용 가능한 옵션:
joined,
pending
예시:

"joined"

updated_at
string
필수

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

예시:

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

user
object | null
필수

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