code: public Discussion resolveMergeRequestDiscussion(Object projectIdOrPath, Integer mergeRequestIid,
              Integer discussionId, Boolean resolved)  throws GitLabApiException {
          GitLabApiForm formData = new GitLabApiForm().withParam("resolved", resolved, true);
          Response response = put(Response.Status.OK, formData.asMap(),
                  "projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid, "discussions");
          return (response.readEntity(Discussion.class));
      }
docs: Resolve or unresolve whole discussion of a merge request.
  
  <pre><code>GitLab Endpoint: POST /projects/:id/merge_requests/:merge_request_iid/discussions</code></pre>
  
  @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param mergeRequestIid mergeRequestIid the internal ID of the merge request
  @param discussionId the ID of a discussion
  @param resolved resolve/unresolve the discussion
  @return the updated DIscussion instance
  @throws GitLabApiException if any exception occurs during execution