Change a member's role or agents
update_organization_memberChange a member's role or agents
Gives a teammate a new role, new agents, or both, as the dashboard's Team page does; the
change takes effect within a minute. A field left out keeps its value. Choosing agents
(all_agents: false) needs agent_ids in the same request, and they replace the
teammate's agents. A key gives admin, member or rep only: owners are managed in the
dashboard (403 owner_only), and a key never changes the access of the person who created
it (403 self_edit). See the team-management rules under team:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | The new role. Owners are managed in the dashboard. | |
| user_id | Yes | A teammate's `user_id`, as `listOrganizationMembers` lists it. Someone not on the team is `404 not_found`. | |
| agent_ids | No | With `all_agents: false`: the agents they get, replacing the ones they have. At most 100 (`too_many_agents`). | |
| all_agents | No | Every agent, including agents added later. False needs `agent_ids` in the same request. |