Create endpoint to save multiple phases at once