The desired behaviour for when a user shuts down the Proctoring Tool whilst the Attempt is in progress is that we would like to terminate their Attempt; i.e. stop them from continuing at a later time. The simplest approach here is to automatically Submit the attempt. This means that whatever progress the candidate made during the exam will remain, however they cannot return later to continue further.As your Proctoring Tool lifecycle is outside of Synap’s control, we cannot know with certainty that a user has closed your tool. Therefore, it is expected that your tool will observe for this outcome, and notify our system via an API call.The Synap API is based on the OpenAPI V3 spec and although we have a full set of API References available upon request, this is currently not publicly published due to its beta-status. For now we have selected the necessary endpoints for a Proctoring integration and listed them here.
Look at the specification for posting to "Create AttemptSubmission".