What to do if MuleSoft courses fail to complete correctly
Published
The MuleSoft training website sometimes does not mark a course as finished, even when you completed all parts of it. When this occurs, you can set the status of the enrolment through the training API. Put the enrolment IDs in list.txt, one ID on each line. Then log in to the training website and copy the JSESSIONID and SE cookies from your browser into the command:
for i in `cat list.txt`; do curl "https://training.mulesoft.com/api/rest/public/enrolments/$i/status" -X PATCH -H 'Cookie: JSESSIONID=<session-id>; SE=<se-cookie>' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Content-Type: application/json' --data '{"status":"PASSED"}'; done