updateMembership

Updates the role of a member within the organization.

Return

A ClerkResult containing the updated OrganizationMembership on success, or a ClerkErrorResponse on failure

Parameters

userId

The unique identifier of the user whose membership role should be updated

role

The new role to assign to the user (e.g., "admin", "basic_member")