Change Team Member Role

Changes a team member's organization role, their role on one or more WhatsApp numbers, or both.

Before you call

  • The API key's user needs permission to manage roles.
  • memberPhoneNumber (with country code) is required; send orgRole, wabaRoles, or both.
  • Reference each role by exactly one of roleId or roleName, as returned by Get all roles.
  • Each wabaRoles entry needs a wabaNumber; the same number cannot appear twice.

How it works

  • An invalid orgRole fails the whole request; the organization owner's org role cannot be changed.
  • wabaRoles entries apply independently: valid ones are listed under wabaRoles.added, failed ones under wabaRoles.errored with a reason.
  • If a roleName matches more than one role, that entry fails; use roleId instead.
  • Setting the role the member already has is not an error.
  • The response returns orgRoleId and orgRoleName only when orgRole was sent.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Phone number (with country code) of the team member whose roles are being changed.

orgRole
object

New organization-level role for the member, referenced by EITHER roleId OR roleName (both are returned by Get All Roles). Optional, but at least one of orgRole or wabaRoles must be provided.

wabaRoles
array of objects

Per-WABA role changes for the member. Each entry references its role by EITHER roleId OR roleName (both are returned by Get All Roles) — the example below shows one of each. Optional, but at least one of orgRole or wabaRoles must be provided. Duplicate wabaNumber entries are rejected.

wabaRoles
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json