Original Invitation Status | Invite API Behavior |
---|---|
Invitation Pending (Test Attempt not taken) | Invite 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 | Invite 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 | Invite 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 | The Invite API does not throw an error; instead, it returns the same invitation. However, if the candidate tries to retake the test, the platform will display a message stating: 'You have already attempted this test.' If you wish to allow the candidate to retake the same test, please use our Reattempt API. |
Test Status - In Progress | Invite API doesn't throw an error. It returns the current invitation for which the Test is in Progress. |
Test Status - Test Left | The Invite API does not throw an error; instead, it returns the same invitation. However, if the candidate tries to retake the test, the platform will display a message stating: 'You have already attempted this test.' If you wish to allow the candidate to retake the same test, please use our Reattempt API. |
curl --location -g --request POST 'https://apiv3.imocha.io/v3/tests/{testId}/invite' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "string",
"name": "string",
"callbackUrl": "string",
"redirectUrl": "string",
"disableMandatoryFields": 0,
"hideInstruction": 0,
"sendEmail": "string",
"stakeholderEmails": "string",
"startDateTime": "string",
"endDateTime": "string",
"timeZoneId": 0,
"ProctoringMode": "string"
}'
{
"testInvitationId": 0,
"testUrl": "string",
"status": "string"
}