Reattempt Test
-
Description
Reattempt test -
URL structure
https://api.interviewmocha.com/v2/org/testinvitation/{testInvitationId}/reattempt
-
Request Method
GET
-
Request Data
Request URL ParametersParameter Description Default Data Type Is Mandatory testInvitationId testInvitationId associated with candidate giving particular test None Int64 Yes -
Response Data
ParametersArgument Name Description Return Data Type statuscode Status code returned with every response. String description Status code message. String result Wrapper object Object result.testInvitationId New test invitation id of reattempted test Long result.takeTestURL URL to access test String -
Sample Code
Example Curl request will look like this:curl -i -H "x-api-key:YOUR_API_KEY_HERE" -H "content-type:application/json;charset=utf-8" -X GET https://api.interviewmocha.com/v2/org/testinvitation/226985/reattempt
For successful requests:
For Failed requests:{ "statuscode": "200.1", "description": "The request has succeeded.", "result": { "testInvitationId": 288835, "takeTestURL": "https://test.interviewmocha.com/AuthenticateKey?id=b77abf608a" } }
{ "statuscode": "403.4", "description": "Operation on resource cannot be performed", "result": "Reattempt is only allowed on completed test invitation" }