Skip to main content
PATCH
/
v1
/
groups
/
{id}
/
members
/
{participantId}
Update member role
curl --request PATCH \
  --url https://api.scrip.dev/v1/groups/{id}/members/{participantId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "role": "MEMBER",
  "on_behalf_of_participant_id": "<string>"
}
'
{
  "message": "Member role updated",
  "participant_id": "550e8400-e29b-41d4-a716-446655440000",
  "role": "ADMIN"
}
Updates a member’s role within a group. Valid roles are MEMBER and ADMIN. A group must always have at least one ADMIN —attempting to demote the last admin will return an error.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Path Parameters

id
string<uuid>
required

Group ID

participantId
string<uuid>
required

Participant ID

Body

application/json

New role

role
enum<string>
required

New role for the member: MEMBER or ADMIN

Available options:
MEMBER,
ADMIN
on_behalf_of_participant_id
string

Participant who initiated this change, for audit purposes

Response

Member role updated

message
string

Confirmation message

Example:

"Member role updated"

participant_id
string<uuid>

Participant whose role was updated

Example:

"550e8400-e29b-41d4-a716-446655440000"

role
string

New role after update

Example:

"ADMIN"