General developer forum

REST-API: Activate second attempt for a quiz

 
Picture of Alessandro Petrillo
REST-API: Activate second attempt for a quiz
 

Hello together


In one of our courses we have a quiz which the participants have to solve and they have only one attempt.

But they can buy a "re-exam" so they can solve the quiz a second time. So that we don't have to enable a second attempt manually over the administration page we want enable the second attempt over the REST-API automatically when we receive the payment. 

Unfortunately I didn't find the right API function for that. Does it exists? If yes, which one is it?


Thanks for your help!


Best regards,

Alessandro 

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: REST-API: Activate second attempt for a quiz
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

I don't think there is a web service API for this.

The quiz has the functionality which you can access through the Moodle UI. (Quiz administration -> User overrides). It would not be difficult to make a web service method for the same functionality. Someone just needs to code it.

 
Average of ratings: Useful (1)