[api] fix validation of grouplist answer