How to complete History task thru Rest API

Hi, In our case, the Runtime Tasks got completed but the History task is still in Active state.
Because of that, we are facing some discrepancy in report. Kindly let me know, is there any way to complete History Task thru Rest API or is any other possible solution to resolve this.

Thanks in Advance