[fix] make party nullable in api