Update test settings for given test. Partial update is not supported. You need to first call “Get Test Settings” (unless you’ve done that already), store values or use somewhere in page, and send request with whole object along with changes values in remaining sub-objects.
Also, please note that, certain settings have some rules they obey like Allow Copy Paste which disable window violation popup. Please refer to app.interviewmocha UI for understanding features.
Field | Type | Required | Default | Description |
---|---|---|---|---|
testId | Integer64 | Yes | - | Unique identifier of the test |
Field | Type | Required | Default | Description | |
---|---|---|---|---|---|
testName | String | Yes | - | - | |
testAliasName | String | Yes | - | - | |
typeOfTest | Integer | Yes | - | - | |
practiceTest | Integer | Yes | - | - | |
randomQuestions | Integer | Yes | 0 | - | |
randomAnswers | Integer | Yes | 0 | - | |
showQuestionScore | Integer | Yes | - | - | |
sectionEndPopup | Integer | Yes | 0 | - | |
sectionTimeLeftAlert | Integer | Yes | 0 | - | |
candidateFeedback | Integer | Yes | 0 | - | |
sendTestReportEmailToCandidate | Integer | Yes | 0 | - | |
terminateTestOnImageViolation | Integer | Yes | 0 | - | |
terminateTestAfterViolationCount | Integer | Yes | 0 | - | - |
URL 1: /v3/tests/{testId}/settings
Request Body{ "testSettings": { "testName": "A11", "testAliasName": "A11", "typeOfTest": 1, "practiceTest": 1 }, "questionSettings": { "randomQuestions": 0, "randomAnswers": 0, "showQuestionScore": 0 }, "displayMessageSettings": { "sectionEndPopup": 0, "sectionTimeLeftAlert":0, "candidateFeedback": 0 }, "emailSettings": { "sendTestReportEmailToCandidate": 0 }, "imageProctoringSettings": { "terminateTestOnImageViolation": 0, "terminateTestAfterViolationCount": 1 }, "windowViolationSettings": { "copyPaste": 0, "displayViolationSettings": { "displayViolationPopUp": 1, "terminateTestOnWindowViolation": 1, "terminateTestAfterViolationCount": 1 } } }
Status 201 Created
Response{ "testSettings": { "testName": "A11", "testAliasName": "A11", "typeOfTest": 1, "practiceTest": 1 }, "questionSettings": { "randomQuestions": 1, "randomAnswers": 1, "showQuestionScore": 1 }, "displayMessageSettings": { "sectionEndPopup": 1, "sectionTimeLeftAlert": 1, "candidateFeedback": 1 }, "emailSettings": { "sendTestReportEmailToCandidate": 0 }, "imageProctoringSettings": { "terminateTestOnImageViolation": 1, "terminateTestAfterViolationCount": 5 }, "windowViolationSettings": { "copyPaste": 1, "displayViolationSettings": { "displayViolationPopUp": 1, "terminateTestOnWindowViolation": 1, "terminateTestAfterViolationCount": 3 } } }
Status 400 Bad Request
If required parameters have invalid values.
Response{ "errors": [ "'Email' must not be empty.", "Email address is in invalid format" ] }