Can I update a task's input before restarting a workflow from it?

Yes, you can use the /api/workflow/{workflowId}/rerun endpoint to override task input when restarting a workflow from a specific task.