API for add rule condition