Send request to the API to set a task's progress