Create and update task calling to API