Change a team's reps
update_team_membersAdd reps to a team, remove them, or replace the whole roster, with each rep's ring priority and call cap; also sets how the team is rung (call_mode) and lead-owner routing. team_id comes from get_settings with no arguments; reps are identified by user_id. Returns the team's roster afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | add: add these reps (or update their priority/cap). remove: take these reps off the team. set: make these reps the whole roster, removing everyone else. Omit (with members) to change only call_mode or lead_owner_routing. | |
| members | No | The reps to add, remove or set, required with action. For remove only user_id matters. | |
| team_id | Yes | The team to change. | |
| call_mode | No | How reps are rung: one at a time by priority (roundrobin) or all at once (simultaneous). | |
| lead_owner_routing | No | How leads with an owner are rung: ignore (team and owner in priority order), owner_first (owner first, then the team), only_owner (only the owner, or the team if there is none), only_team (only the team, never the owner). |