public boolean completeResponse ( int surveyId , int responseId , LocalDateTime date ) throws LimesurveyRCException { Map < String , String > responseData = new HashMap <> ( ) ; responseData . put ( "submitdate" , date . format ( DateTimeFormatter . ISO_LOCAL_DATE ) + " " + date . format ( DateTimeFormatter . ISO_LOCAL_TIME ) ) ; JsonElement result = updateResponse ( surveyId , responseId , responseData ) ; if ( ! result . getAsBoolean ( ) ) { throw new LimesurveyRCException ( result . getAsString ( ) ) ; } return true ; }
Complete a response .