code: public Member updateMember(Object projectIdOrPath, Integer userId, Integer accessLevel, Date expiresAt) throws GitLabApiException {
          GitLabApiForm formData = new GitLabApiForm()
                  .withParam("access_level", accessLevel, true)
                  .withParam("expires_at",  expiresAt, false);
          Response response = put(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "members", userId);
          return (response.readEntity(Member.class));
      }
docs: Updates a member of a project.
  
  <pre><code>PUT /projects/:projectId/members/:userId</code></pre>
  
  @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
  @param userId the user ID of the member to update, required
  @param accessLevel the new access level for the member, required
  @param expiresAt the date the membership in the group will expire, optional
  @return the updated member
  @throws GitLabApiException if any exception occurs