URL METHOD PARAM
Parameter Type Desciption
/wp-json/learnpress/v1/quiz/finish POST id integer Quiz ID
answered object Answered all question

Response

"{
  ""success"": true,
  ""message"": ""Success!"",
  ""results"": {
    ""questions"": {
      ""198"": {
        ""explanation"": """",
        ""options"": [
          {
            ""title"": ""[TRUE] - Quic portenta diviserunt poteris vocatur omnes compensabatur necne placet hae tecum sequatur"",
            ""value"": ""5f2674eb"",
            ""is_true"": ""yes"",
            ""uid"": 221
          }
        ]
      },
      ""199"": {
        ""explanation"": """",
        ""options"": [
          {
            ""title"": "" [TRUE] - Concordiae domus homines loco exul proclivi commota edere aperiendum constituto praeposita"",
            ""value"": ""fd9069eb"",
            ""is_true"": ""yes"",
            ""uid"": 222
          }
        ]
      }
    },
    ""answered"": {
      ""198"": {
        ""correct"": true,
        ""mark"": 1,
        ""answered"": ""5f2674eb""
      },
      ""199"": {
        ""correct"": false,
        ""mark"": 0,
        ""answered"": """"
      }
    },
    ""status"": ""completed"",
    ""results"": {
      ""questions"": {
        ""198"": {
          ""correct"": true,
          ""mark"": 1,
          ""answered"": ""5f2674eb""
        },
        ""199"": {
          ""correct"": false,
          ""mark"": 0,
          ""answered"": """"
        }
      },
      ""mark"": 2,
      ""user_mark"": 1,
      ""question_count"": 2,
      ""question_empty"": 1,
      ""question_answered"": 1,
      ""question_wrong"": 0,
      ""question_correct"": 1,
      ""status"": ""completed"",
      ""result"": 50,
      ""time_spend"": ""01:25:55"",
      ""passing_grade"": ""90%"",
      ""user_item_id"": ""464"",
      ""interval"": [
        {
          ""date"": ""2021-07-14 07:47:40.000000"",
          ""timezone_type"": 1,
          ""timezone"": ""+00:00""
        },
        {
          ""date"": ""2021-07-14 09:13:35.000000"",
          ""timezone_type"": 1,
          ""timezone"": ""+00:00""
        }
      ],
      ""graduation"": ""failed"",
      ""graduationText"": ""Failed""
    },
    ""attempts"": []
  }
}"