add rule submission api