Skip to main content

Change a member's role or agents

PATCH 

/v1/organization/members/:userId

x-scope: "team:write"

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.

Request​

Responses​

The teammate, as they are now.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.