The Task Complete REST API closes a task workflow after you complete all the tasks in the workflow. Use the API to close a workflow after you process all the task related records. For example, when you select merge candidates, you can create a task that initiates the merge workflow. The merge task is complete after you preview each candidate and either merge it or mark it as not a match. Use the API to close the merge workflow.