Original Invitation Status | Reattempt Behavior |
---|---|
Invitation Pending (Test Attempt not taken) | Reattempt API doesn't throw an error. It returns back the pending invitation. However it replaces the old Access time and timezoneid with the new details passed in the API request. |
Invitation Cancelled | Reattempt API doesn't throw an error. It returns back the pending invitation. However it replaces the old Access time and timezoneid with the new details passed in the API request and changes the Invitation Status to Pending. |
Invitation Expired | Reattempt API doesn't throw an error. It returns back the pending invitation. However it replaces the old Access time and timezoneid with the new details passed in the API request and changes the Invitation Status to Pending. |
Test Status - Complete | Reattempt API sends back a new TestInvitationID and URL. It inherits the test settings of the original testinvitationid except for Access time and timezoneid. |
Test Status - In Progress | Reattempt API sends a response back "Reattempt is not allowed on Test invitation id: 999999 which is in inprogress state." |
Test Status - Test Left | Reattempt API sends back a new TestInvitationID and URL. It inherits the test settings of the original testinvitationid except for Access time and timezoneid. |
curl --location -g --request POST 'https://apiv3.imocha.io/v3/invitations/{testInvitationId}/reattempt' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"StartDateTime": "string",
"EndDateTime": "string",
"TimeZoneId": 0,
"CallbackUrl": "string",
"RedirectUrl": "string",
"hideInstruction": 0,
"sendEmail": "string"
}'
{
"testInvitationId": 0,
"testUrl": "string",
"callbackUrlRegistered": "string",
"redirectUrlRegistered": "string"
}