api save lecture