cURL
curl --request PATCH \ --url https://api.example.com/api/teams/{id}/members/{userId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "role": "admin" } '
{ "data": { "id": 123, "team_id": 123, "user_id": "<string>", "role": "<string>", "joined_at": "<string>" } }
Change a team member’s role. Requires owner or admin role.
Auth0 JWT access token
Team ID
^\d+$
"1"
User ID of the team member
1
"auth0|abc123"
New role for the member (cannot promote to owner)
admin
member
"admin"
Member role updated
Show child attributes