code: def update_pull_request(self, git_pull_request_to_update, repository_id, pull_request_id, project=None):
          
          route_values = {}
          if project is not None:
              route_values['project'] = self._serialize.url('project', project, 'str')
          if repository_id is not None:
              route_values['repositoryId'] = self._serialize.url('repository_id', repository_id, 'str')
          if pull_request_id is not None:
              route_values['pullRequestId'] = self._serialize.url('pull_request_id', pull_request_id, 'int')
          content = self._serialize.body(git_pull_request_to_update, 'GitPullRequest')
          response = self._send(http_method='PATCH',
                                location_id='9946fd70-0d40-406e-b686-b4744cbbcc37',
                                version='5.1-preview.1',
                                route_values=route_values,
                                content=content)
          return self._deserialize('GitPullRequest', response)
docs: UpdatePullRequest.
          [Preview API] Update a pull request
          :param :class:`<GitPullRequest> <azure.devops.v5_1.git.models.GitPullRequest>` git_pull_request_to_update: The pull request content that should be updated.
          :param str repository_id: The repository ID of the pull request's target branch.
          :param int pull_request_id: ID of the pull request to update.
          :param str project: Project ID or project name
          :rtype: :class:`<GitPullRequest> <azure.devops.v5_1.git.models.GitPullRequest>`