Skip to main content
PUT
/
api
/
auth
/
organizations
/
members
/
{membership_id}
/
role
Update Member Role
curl --request PUT \
  --url https://api.example.com/api/auth/organizations/members/{membership_id}/role \
  --header 'Content-Type: application/json' \
  --header 'X-Organization-Id: <x-organization-id>' \
  --data '
{
  "new_role": "<string>"
}
'
{
  "success": true,
  "message": "Member role updated"
}
Update the role of a member in your organization.

Request

membership_id
string
required
The unique identifier of the membership to update.
X-Organization-Id
string
required
The unique identifier of the organization.
new_role
string
required
The new role to assign to the member. Must be one of admin, agent_manager, or user.

Response

success
boolean
Indicates whether the operation was successful.
message
string
A descriptive message about the operation result.
{
  "success": true,
  "message": "Member role updated"
}