Overview
useUpdateMemberRole returns a callable function for changing a space member’s role. Only admins can update roles.
Usage Example
Parameters
string
required
UUID of the space.
string
required
UUID of the membership record to update.
"admin" | "moderator" | "member"
required
The new role to assign.
Returns
string
Confirmation message.
object
Updated membership with
id, role, status, joinedAt, and userId.
