Replace Complete with Approve / Reject buttons

Thks for the answer sebastian. How would you build the API call to complete the task?