Skip to content
Get started

Update

teams.members.update(strmember_id, MemberUpdateParams**kwargs) -> object
PUT/teams/{teamId}/members/{memberId}

Update a team member’s role and/or consumption limit

ParametersExpand Collapse
team_id: str
member_id: str
max_consumption: Optional[float]

Max consumption (CU) for this member over the billing period, overriding the team-wide default. Use a value >= 0 to cap, -1 for unlimited (uncapped), or null to remove the override and fall back to the team-wide default.

role: Optional[str]

For a human member: a built-in team role (admin | member). For an API-key member: a team-plane role — a ;-separated list of team.* scopes (e.g. "team.members.manage;team.usage.read"). Only a human team admin can grant a write scope; team.members.manage also lets a team key manage the members, API keys and consumption cap of every project of the team.

ReturnsExpand Collapse
object

Update

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
member = client.teams.members.update(
    member_id="memberId",
    team_id="teamId",
)
print(member)
{}
Returns Examples
{}