Assignment submitted
The Assignment submitted webhook is called when a learner submits an assignment. It contains assignment info, attempt information, and everything in the module completed webhook.
Example
json
{"module": {"entity_type": "assignment","type": "activity","published_id": null,"id": null,"title": null,"description": null},"id": null,"completed": "2022-06-06T02:42:04+00:00","commenced": "2022-06-06T02:42:04+00:00","attempts": [{"id": null,"chosen": null,"commenced": null,"completed": null,"total_time": 0,"progress_percent": 0,"score": null,"passed": false,"passing_grade": null,"progress": {"": {"completed": false,"id": null,"object_id": null,"view_count": 0,"elapsed_time": 0,"deleted": null,"only_non_deleted": true,"type": "assignment","object": {"published_id": null,"deleted": null},"answer": {"text": "answer text","files": null},"score": null,"correct": null,"feedback": null,"answer_text": "answer text","answer_files": null,"dtype": "assignmentprogress"}},"grade_published": null,"scorm_data": null,"fresh": false,"deleted": null,"only_non_deleted": true}],"attempt": {"id": null,"chosen": null,"commenced": null,"completed": null,"total_time": 0,"progress_percent": 0,"score": null,"passed": false,"passing_grade": null,"progress": {"": {"completed": false,"id": null,"object_id": null,"view_count": 0,"elapsed_time": 0,"deleted": null,"only_non_deleted": true,"type": "assignment","object": {"published_id": null,"deleted": null},"answer": {"text": "answer text","files": null},"score": null,"correct": null,"feedback": null,"answer_text": "answer text","answer_files": null,"dtype": "assignmentprogress"}},"grade_published": null,"scorm_data": null,"fresh": false,"deleted": null,"only_non_deleted": true},"score": {"percentage": 95,"percentage_string": "95%","min": 0,"max": 100,"raw": 95},"passed": true,"passing_grade": 90,"progress_percent": 100,"score_percent": 95,"total_time": 0,"object_identity": {"original_id": null,"cost": null,"draft_assignment": {"entity_type": "assignment","type": "activity","published_id": null,"id": null,"title": null,"description": null},"published_assignment": null,"options": {"options": {"allow_edits": "before_cutoff","passing_grade": 100,"require_passing_grade": true},"theme": null,"required": true,"hide": false,"available_from": null,"available_until": null,"due_date": null,"cutoff_date": null,"dtype": "resourceoptions"},"dtype": "securableassignment"},"student_name": "Sally Student","user": {"id": 4,"username": "sally_student","firstname": "Sally","lastname": "Student","avatar": "https://static.ecoach.com/uploads/client/1100/global/????.jpeg","email": "sally_student@coassemble.com","email_verified": false,"active": true,"created": "2015-03-09T13:00:00+00:00"},"accreditable_user": {"custom_value": null,"dtype": "accreditableuser"},"parent": {"module": null,"id": null,"completed": "2022-06-06T02:42:04+00:00","commenced": "2022-06-06T02:42:04+00:00","attempts": [],"attempt": null,"score": {"percentage": 95,"percentage_string": "95%","min": 0,"max": 100,"raw": 95},"passed": true,"passing_grade": 90,"progress_percent": 100,"score_percent": 95,"total_time": 0,"object_identity": {"original_id": null,"cost": null,"course": {"id": 10,"code": "HTD","title": "How to train a dragon"},"options": {"options": [],"theme": null,"required": true,"hide": false,"available_from": null,"available_until": null,"due_date": null,"cutoff_date": null,"dtype": "courseoptions"},"dtype": "securablecourse"},"student_name": "Sally Student","user": {"id": 4,"username": "sally_student","firstname": "Sally","lastname": "Student","avatar": "https://static.ecoach.com/uploads/client/1100/global/??????.jpeg","email": "sally-student@coassemble.com","email_verified": false,"active": true,"created": "2015-03-09T13:00:00+00:00"},"accreditable_user": {"custom_value": null,"dtype": "accreditableuser"},"parent": null,"security_group": {"group": {"id": 10,"name": "My Group","dtype": "group"},"client": {"fqdn": "mytrainingacademy.coassemble.com"},"dtype": "accreditablestudentgroup"},"course": {"id": 10,"code": "HTD","title": "How to train a dragon"},"group": {"id": 10,"name": "Sydney","dtype": "group"},"groups": null,"report_url": "https://mytrainingacademy.coassemble.com/rest/builder/report/course/10/student/4"},"event": "assignment_submitted"}
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238