updateMembership

@FormUrlEncoded
@PATCH(value = "organizations/{organization_id}/memberships/{user_id}")
abstract suspend fun updateMembership(@Path(value = "organization_id") organizationId: String, @Path(value = "user_id") userId: String, @Field(value = "role") role: String): ClerkResult<OrganizationMembership, ClerkErrorResponse>

Updates the role of an existing member in an organization.

Return

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

Parameters

organizationId

The unique identifier of the organization

userId

The unique identifier of the user whose membership to update

role

The new role to assign to the user

See also