Skip to main content
PATCH
Update member role
Updates a member’s role (MEMBER or ADMIN) within a group. Demoting a group’s last admin returns 409 last_admin_cannot_be_removed; promote another member first before demoting or removing the original admin. Changing a CLOSED member’s role returns 409 participant_inactive, though they can still be removed.
For usage patterns and examples, see the Groups guide.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Path Parameters

group_id
string<uuid>
required

The group's id.

participant_id
string
required

The participant's id, or ext: followed by the participant's external_id.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|ext:.{1,255})$

Body

application/json

New role

Changes a member's role in a group.

role
enum<string>
required

New role for the member: MEMBER or ADMIN

Available options:
MEMBER,
ADMIN
Example:

"ADMIN"

on_behalf_of_participant_id
string<uuid>

The participant who asked for this change. Scrip stores it with the membership record; the API does not return it.

Example:

"f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b007"

Response

Member role updated

Confirms a member's new role in a group.

message
string

Confirmation message

Example:

"Member role updated"

participant_id
string<uuid>

Participant whose role was updated

Example:

"f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"

role
string

New role after update

Example:

"ADMIN"