メインコンテンツへスキップ
PATCH
https://{teamSlug}.teams.auth0.com
/
api
/
members
/
{id}
Update a team member's role
curl --request PATCH \
  --url https://{teamSlug}.teams.auth0.com/api/members/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "teams_owner"
}
'
{
  "id": "<string>",
  "email": "jsmith@example.com",
  "role": "teams_owner",
  "name": "<string>",
  "given_name": "<string>",
  "family_name": "<string>",
  "nickname": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs-dev.auth0-mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

The unique ID of the team member to update

ボディ

application/json

Update a team member's role

role
enum<string>
必須

The new role to assign to the team member.

利用可能なオプション:
teams_owner,
teams_contributor,
teams_report_viewer
:

"teams_owner"

レスポンス

Team member updated successfully

id
string
必須

Unique ID of the team member.

:

"auth0|68da0038bab277c02ed1d4c8"

"google-oauth2|123456789012345678901"

email
string<email>
必須

Email of the team member

:

"john.doe@example.com"

"jane.smith@company.org"

role
enum<string>
必須

The team-level role of the team member.

利用可能なオプション:
teams_owner,
teams_contributor,
teams_report_viewer
:

"teams_owner"

name
string
必須

Full name of the team member

:

"John Doe"

"Jane Smith"

given_name
string
必須

First name of the team member. Returns empty string if not set.

:

"John"

"Jane"

family_name
string
必須

Last name of the team member. Returns empty string if not set

:

"Doe"

"Smith"

nickname
string
必須

Nickname of the team member. Returns empty string if not set.

:

"johndoe"

"jsmith"