MDL-31861 add web service function save_definitions