{% extends "docs/base.html" %} {% block docs_content %}
Change a team member role.
PUT /api/v1/teams/{team_slug}/members/{username}JSON body: role (owner or member).
curl \
--request PUT \
--header "Authorization: Bearer $PEARING_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{"role": "owner"}' \
"$PEARING_API_URL/v1/teams/platform/members/alice"200 OK with updated member detail. The user_email field is only present on these gated member/staff surfaces.
{
"user_username": "alice",
"user_email": "<private>",
"role": "owner"
}404 Not Found when team, user, or membership does not exist.Common auth errors are documented on the API overview page.