modify courses api