API: Fix bug in listing party associations